@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #10100f;
  --panel: #181816;
  --panel-hover: #1e1e1a;
  --text: #f1eee7;
  --muted: #929087;
  --soft: #b8b4aa;
  --line: rgba(241, 238, 231, 0.12);
  --accent: #ff784f;
  --green: #a9c99a;
  --sans: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

/* HEADER */

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1.4px;
}

.brand span {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.page-label,
.eyebrow,
.copy-button,
.section-side-note,
.project-index,
.project-meta,
.tags,
.footer {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.page-label {
  color: var(--muted);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-label i,
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 9px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.copy-button:hover {
  color: var(--text);
  border-color: rgba(255, 120, 79, 0.55);
  background: #1a1916;
}

.copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* INTRODUCTION */

.intro {
  padding: 42px 0 28px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 17px;
}

.avatar {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 120, 79, 0.28);
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(circle at 35% 25%, #30231d, #171613 72%);
  font-weight: 700;
  font-size: 15px;
}

.avatar span {
  position: absolute;
  width: 7px;
  height: 7px;
  right: 1px;
  bottom: 3px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--bg);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.eyebrow b {
  color: var(--accent);
  padding: 0 3px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.075em;
  font-weight: 600;
}

h1 span {
  color: #89867e;
}

.intro-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 0 71px;
}

.intro-copy {
  margin: 0;
  color: #b2afa6;
  font-size: 14px;
  line-height: 1.6;
}

.portfolio-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 195px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.portfolio-link:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 120, 79, 0.45);
  transform: translateY(-1px);
}

.portfolio-icon {
  color: var(--accent);
  font-size: 19px;
}

.portfolio-link strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.portfolio-link small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

/* SOCIAL LINKS */

.social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.social-heading .eyebrow {
  margin: 0;
}

.social-note {
  color: #858278;
  font-size: 10px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #d2cec4;
  font-size: 12px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.social-links a:hover {
  color: var(--text);
  border-color: rgba(255, 120, 79, 0.5);
  background: var(--panel);
}

.social-symbol {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.out-arrow {
  color: #77746c;
  font-size: 12px;
  margin-left: 3px;
}

/* PROJECT SECTION */

.projects {
  padding-top: 29px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 15px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.055em;
  font-weight: 500;
}

h2 span {
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 3px;
}

.section-side-note {
  color: #858278;
  font-size: 9px;
  padding-bottom: 4px;
}

.section-side-note i {
  color: var(--accent);
  font-style: normal;
  margin-left: 4px;
}

/* PROJECT GRID */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

/* PROJECT CARDS */

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 184px;
  padding: 17px 17px 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  background: var(--panel-hover);
  border-color: rgba(255, 120, 79, 0.42);
}

.project-card:focus-visible,
.social-links a:focus-visible,
.portfolio-link:focus-visible,
.copy-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* PROJECT TOP */

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-meta {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.project-index {
  color: #69675f;
  font-size: 9px;
}

/* PROJECT TITLE */

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.project-card h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.06em;
  font-weight: 600;
}

.project-arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.2s;
}

.project-card:hover .project-arrow {
  transform: translate(3px, -3px);
}

/* PROJECT DESCRIPTION */

.project-card p {
  margin: 7px 0 0;
  color: #b8b4aa;
  font-size: 12px;
  line-height: 1.6;
  max-width: 300px;
}

/* PROJECT BOTTOM */

.card-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tags span {
  color: #a09c91;
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 2px;
  font-size: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font: 8px var(--mono);
  white-space: nowrap;
}

.status .status-dot {
  width: 5px;
  height: 5px;
}

.status.development {
  color: #d7b77c;
}

.status.development .status-dot {
  background: #d7b77c;
}

.status.archived {
  color: #96928a;
}

.status.archived .status-dot {
  background: #77746c;
}

.featured-label {
  color: var(--accent);
  font: 8px var(--mono);
  letter-spacing: 0.06em;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  padding: 16px 0 23px;
  border-top: 1px solid var(--line);
  color: #858278;
  font-size: 8px;
}

.footer b {
  color: var(--accent);
  font-size: 12px;
  margin-left: 4px;
}

/* COPY TOAST */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  transform: translate(-50%, 10px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #24231f;
  color: var(--text);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TABLET */

@media (max-width: 760px) {
  .site {
    width: min(100% - 38px, 600px);
  }

  .project-list {
    gap: 9px;
  }

  .project-card {
    padding: 15px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-card p {
    font-size: 11px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .site {
    width: min(100% - 34px, 480px);
  }

  .topbar {
    min-height: 60px;
  }

  .topbar-right {
    gap: 12px;
  }

  .copy-button {
    padding: 8px;
  }

  .copy-label {
    display: none;
  }

  .intro {
    padding: 31px 0 21px;
  }

  .avatar {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 13px;
  }

  .identity {
    gap: 12px;
  }

  h1 {
    font-size: clamp(37px, 9vw, 46px);
  }

  .eyebrow {
    font-size: 8px;
  }

  .intro-bottom {
    margin: 14px 0 0 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .intro-copy {
    font-size: 13px;
  }

  .portfolio-link {
    min-width: 0;
    padding: 10px;
  }

  .portfolio-link strong {
    font-size: 11px;
  }

  .social-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px 0;
  }

  .social-heading {
    width: 100%;
    justify-content: space-between;
  }

  .social-links {
    width: 100%;
  }

  .social-links a {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
  }

  .projects {
    padding-top: 23px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  h2 {
    font-size: 23px;
  }

  .project-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .project-card {
    min-height: 155px;
    padding: 14px 15px 13px;
  }

  .project-title-row {
    margin-top: 13px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-card p {
    font-size: 12px;
    line-height: 1.55;
  }

  .project-meta {
    font-size: 8px;
  }

  .tags span {
    font-size: 7px;
  }

  .status,
  .featured-label {
    font-size: 8px;
  }

  .card-bottom {
    padding-top: 12px;
  }

  .footer {
    margin-top: 21px;
    padding-bottom: 18px;
    font-size: 7px;
  }
}

/* SMALL PHONES */

@media (max-width: 360px) {
  .site {
    width: calc(100% - 28px);
  }

  .page-label {
    font-size: 8px;
  }

  .eyebrow {
    font-size: 7px;
  }

  .social-note {
    font-size: 9px;
  }

  .project-meta {
    font-size: 7px;
  }

  .tags span {
    font-size: 6px;
    padding: 4px 5px;
  }

  .project-card h3 {
    font-size: 22px;
  }

  .footer {
    font-size: 6px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
