@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/NotoSerifSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/NotoSerifSC-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC";
  src: url("assets/fonts/NotoSerifSC-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface-canvas: #f7f1e6;
  --surface-base: #fffdf8;
  --surface-muted: #efe4d3;
  --surface-panel: #fbf6ed;
  --brand-ink: #3e1602;
  --brand-primary: #74310a;
  --brand-action: #9a3e08;
  --brand-accent: #c76523;
  --accent-cool: #5f7475;
  --text-primary: #251f1a;
  --text-secondary: #5d5148;
  --text-tertiary: #7b6d62;
  --border-subtle: rgba(116, 49, 10, 0.16);
  --shadow-card: 0 18px 48px rgba(62, 22, 2, 0.10);
  --shadow-media: 0 28px 90px rgba(62, 22, 2, 0.18);
  --page-x: 48px;
  --content-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(247, 241, 230, 0) 420px),
    var(--surface-canvas);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--brand-ink);
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px var(--page-x);
  border-bottom: 1px solid rgba(116, 49, 10, 0.10);
  background: rgba(255, 253, 248, 0.84);
  color: var(--brand-ink);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(116, 49, 10, 0.22);
  border-radius: 8px;
  background: #f3e5d4;
  color: var(--brand-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--brand-accent);
}

.hero,
.about-section,
.work-section,
.site-footer {
  width: min(100% - var(--page-x) * 2, var(--content-max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  padding: 76px 0 84px;
  scroll-margin-top: 96px;
}

.hero-copy-block {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker,
.work-label {
  color: var(--brand-action);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin-top: 12px;
  font-size: 74px;
  line-height: 1.04;
}

.hero-subtitle {
  margin-top: 14px;
  color: var(--brand-primary);
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.45;
}

.hero-copy {
  width: min(100%, 540px);
  margin: 16px auto 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1;
}

.primary-link {
  border: 1px solid rgba(116, 49, 10, 0.18);
  background: var(--brand-primary);
  color: #fffdf8;
  box-shadow: 0 10px 24px rgba(116, 49, 10, 0.16);
}

.secondary-link {
  border: 1px solid rgba(116, 49, 10, 0.20);
  background: rgba(255, 253, 248, 0.56);
  color: var(--brand-primary);
}

.primary-link:hover {
  background: var(--brand-action);
}

.secondary-link:hover {
  border-color: rgba(116, 49, 10, 0.34);
  background: rgba(255, 253, 248, 0.88);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(116, 49, 10, 0.14);
  border-radius: 8px;
  background: var(--surface-muted);
  box-shadow: var(--shadow-media);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 48%;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(62, 22, 2, 0), rgba(62, 22, 2, 0.26));
}

.hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 12px;
  line-height: 1;
}

.about-section,
.work-section {
  scroll-margin-top: 96px;
}

.about-section {
  padding: 82px 0 72px;
  border-top: 1px solid var(--border-subtle);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: start;
  margin-top: 18px;
}

.about-layout h2,
.section-heading h2 {
  font-size: 34px;
  line-height: 1.32;
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 17px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.about-stats div {
  border: 1px solid rgba(116, 49, 10, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.58);
  box-shadow: 0 12px 30px rgba(62, 22, 2, 0.06);
}

.about-stats strong {
  display: block;
  color: var(--brand-primary);
  font-family: "Noto Serif SC", serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
}

.about-stats div:nth-child(2) strong {
  color: var(--accent-cool);
}

.about-stats span {
  display: block;
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.work-section {
  padding: 76px 0 104px;
  border-top: 1px solid var(--border-subtle);
}

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

.section-heading h2 {
  width: min(100%, 720px);
  margin-top: 14px;
}

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

.work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 49, 10, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-card);
}

.work-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(116, 49, 10, 0.10);
  background: var(--surface-panel);
}

.funes-media {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(232, 238, 234, 0.88) 54%, rgba(239, 228, 211, 0.86)),
    #fffdf8;
}

.funes-media::before {
  position: absolute;
  inset: 34px;
  content: "";
  border: 1px solid rgba(116, 49, 10, 0.10);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.56);
  box-shadow: 0 22px 48px rgba(62, 22, 2, 0.10);
}

.funes-wordmark {
  position: relative;
  z-index: 1;
  width: 220px;
  max-width: 56%;
  filter: drop-shadow(0 10px 22px rgba(62, 22, 2, 0.12));
}

.image-media {
  background: #21160f;
}

.image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(33, 22, 15, 0), rgba(33, 22, 15, 0.34));
}

.status-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 8px;
  padding: 7px 12px;
  background: rgba(62, 22, 2, 0.70);
  color: #fffdf8;
  font-size: 12px;
  line-height: 1;
}

.work-body {
  padding: 26px 26px 28px;
}

.work-label {
  margin-bottom: 12px;
}

.work-card h3 {
  min-height: 68px;
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.4;
}

.text-link {
  color: var(--brand-action);
  font-size: 14px;
  font-weight: 650;
}

.work-card:nth-child(2) .work-label {
  color: var(--accent-cool);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-brand {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-weight: 650;
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-style: normal;
}

@media (max-width: 860px) {
  :root {
    --page-x: 24px;
  }

  .site-header {
    gap: 18px;
    padding: 14px var(--page-x);
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    gap: 32px;
    padding: 58px 0 64px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .about-section {
    padding: 62px 0 56px;
  }

  .about-layout,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 28px;
  }

  .about-layout h2,
  .section-heading h2 {
    font-size: 28px;
  }

  .work-section {
    padding: 56px 0 72px;
  }

  .work-card h3 {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --page-x: 18px;
  }

  .site-nav {
    display: none;
  }

  .brand-link {
    font-size: 16px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy,
  .about-copy {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 260px);
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: space-between;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .work-media {
    min-height: 220px;
  }

  .funes-media::before {
    inset: 24px;
  }

  .work-body {
    padding: 22px;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }
}
