@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 650;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 750;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
}

:root {
  --paper: #f1ede4;
  --paper-alt: #e8e1d3;
  --surface: #fbf8f1;
  --ink: #141312;
  --ink-70: #3d3a35;
  --ink-50: #766f64;
  --hair: #d8d0c1;
  --amber: #c79b32;
  --green: #3f5a4e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  letter-spacing: 0;
}

.brand {
  font-size: 31px;
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: var(--ink-70);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  font-weight: 650;
}

.button.dark {
  background: var(--ink);
  color: var(--paper);
}

.app-link,
.app-badge {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  min-width: 152px;
  min-height: 46px;
  padding: 6px 13px;
  border: 1px solid var(--ink);
  background: #050505;
  color: #fff;
  font-weight: 650;
  line-height: 1;
}

.app-link::before,
.app-badge::before {
  content: "";
  width: 24px;
  height: 26px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='-2 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.3 0c.1 1.4-.4 2.8-1.3 3.9-.9 1.1-2.3 1.9-3.7 1.8-.2-1.4.5-2.9 1.3-3.8C13.6.8 15.1.1 16.3 0Zm4.8 19.9c-.6 1.4-.9 2-1.8 3.2-1.2 1.8-2.9 3.9-4.9 3.9-1.8 0-2.3-1.1-4.7-1.1-2.5 0-3 1.1-4.7 1.1-2 0-3.6-2-4.8-3.8-3.3-5-3.7-10.9-1.7-14 1.4-2.2 3.7-3.5 5.8-3.5 2.1 0 3.5 1.2 5.2 1.2 1.7 0 2.8-1.2 5.3-1.2 1.9 0 4 .9 5.4 2.7-4.8 2.6-3.9 9.5.9 11.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='-2 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.3 0c.1 1.4-.4 2.8-1.3 3.9-.9 1.1-2.3 1.9-3.7 1.8-.2-1.4.5-2.9 1.3-3.8C13.6.8 15.1.1 16.3 0Zm4.8 19.9c-.6 1.4-.9 2-1.8 3.2-1.2 1.8-2.9 3.9-4.9 3.9-1.8 0-2.3-1.1-4.7-1.1-2.5 0-3 1.1-4.7 1.1-2 0-3.6-2-4.8-3.8-3.3-5-3.7-10.9-1.7-14 1.4-2.2 3.7-3.5 5.8-3.5 2.1 0 3.5 1.2 5.2 1.2 1.7 0 2.8-1.2 5.3-1.2 1.9 0 4 .9 5.4 2.7-4.8 2.6-3.9 9.5.9 11.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-link small,
.app-badge small {
  display: block;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.app-link strong,
.app-badge strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1;
}

.app-badge.compact {
  min-width: 142px;
  min-height: 42px;
  padding-inline: 12px;
}

.button.light {
  background: transparent;
  color: var(--ink);
}

main {
  padding: 0 clamp(18px, 4vw, 52px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(28px, 5vw, 78px);
  min-height: calc(100vh - 82px);
  padding: 42px 0 40px;
  border-bottom: 1px solid var(--hair);
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 620px;
  padding: 28px 0 22px;
}

.eyeline,
.tag,
.archive-search span,
.story-grid span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyeline {
  margin: 0 0 12px;
  color: var(--ink-50);
}

h1 {
  margin: 0;
  font-size: clamp(82px, 11vw, 136px);
  line-height: 0.82;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.9;
}

.hero-copy h2 {
  max-width: 540px;
  margin: 18px 0 0;
  font-size: clamp(25px, 3vw, 46px);
  line-height: 0.98;
}

.hero-copy p:not(.eyeline) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--ink-70);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 520px;
  margin-top: auto;
  padding-top: 32px;
  border-bottom: 1px solid var(--hair);
}

.hero-stats span {
  display: grid;
  gap: 3px;
  padding: 14px 12px 14px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-50);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 680px;
  padding: 0;
}

.feature-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--surface);
}

.feature-photo.large {
  grid-row: 1 / 3;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-photo span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px;
  background: rgb(20 19 18 / 0.82);
  color: var(--paper);
  font-weight: 650;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 46px 0 16px;
  border-bottom: 1px solid var(--hair);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 64px;
}

.destination-card {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--hair);
  background: var(--surface);
}

.destination-card h2 {
  margin-top: 42px;
  font-size: clamp(24px, 3vw, 38px);
}

.destination-card p {
  margin: 14px 0 0;
  color: var(--ink-70);
  line-height: 1.4;
}

h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
}

.archive-search {
  position: relative;
  min-width: min(360px, 100%);
}

.archive-search span {
  position: absolute;
  top: 7px;
  left: 12px;
  color: var(--ink-50);
}

.archive-search input {
  width: 100%;
  height: 50px;
  padding: 17px 12px 4px;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.filter {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recipe-card {
  border: 1px solid var(--hair);
  background: var(--surface);
}

.recipe-card[hidden] {
  display: none;
}

.profile-card[hidden] {
  display: none;
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.recipe-card a {
  display: block;
  height: 100%;
}

.recipe-card .tag {
  display: inline-block;
  margin: 14px 14px 0;
  color: var(--green);
}

.recipe-card h3 {
  margin: 8px 14px 0;
  font-size: 24px;
  line-height: 1.02;
}

.recipe-card p {
  margin: 10px 14px 16px;
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.35;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 30px;
  padding: 64px 0;
  border-bottom: 1px solid var(--hair);
}

.split-section p {
  max-width: 520px;
  color: var(--ink-70);
  font-size: 18px;
  line-height: 1.4;
}

.index-list {
  display: grid;
  border-top: 1px solid var(--hair);
}

.index-list a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}

.index-list span {
  color: var(--ink-50);
}

.stock-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 0 0;
}

.stock-card,
.story-grid article {
  border: 1px solid var(--hair);
  background: var(--surface);
}

.stock-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stock-card strong,
.stock-card span {
  display: block;
  padding: 0 14px;
}

.stock-card strong {
  padding-top: 14px;
  font-size: 22px;
}

.stock-card span {
  padding-bottom: 16px;
  color: var(--ink-50);
}

.magazine {
  padding-bottom: 64px;
}

.story-grid article {
  padding: 18px;
}

.story-grid span {
  color: var(--amber);
}

.story-grid h3 {
  margin: 18px 0 0;
  font-size: 28px;
  line-height: 1.04;
}

.story-grid p {
  margin: 12px 0 0;
  color: var(--ink-70);
  line-height: 1.4;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--hair);
  background: #e8e1d3;
}

.site-footer strong {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  font-size: 28px;
}

.site-footer p {
  max-width: 580px;
  margin: 0;
  color: var(--ink-70);
}

.site-footer a {
  font-weight: 650;
}

.recipe-detail {
  padding: 42px 0 72px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}

.detail-hero > div {
  min-width: 0;
}

.detail-hero h1 {
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.88;
  overflow-wrap: break-word;
}

.detail-hero p:not(.eyeline) {
  margin: 22px 0 26px;
  color: var(--ink-70);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.36;
}

.detail-hero img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border: 1px solid var(--hair);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}

.settings-grid h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.settings-grid p {
  max-width: 620px;
  color: var(--ink-70);
  font-size: 18px;
  line-height: 1.45;
}

.settings-grid p + p {
  margin-top: 14px;
}

.settings-list {
  display: grid;
  margin: 18px 0 0;
  border-top: 1px solid var(--hair);
}

.settings-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.settings-list dt {
  color: var(--ink-50);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.settings-list dd {
  margin: 0;
  font-weight: 650;
}

.locked-recipe {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(135deg, rgb(20 19 18 / 0.04) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--surface);
}

.locked-recipe span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.locked-recipe p {
  margin: 18px 0;
  color: var(--ink-70);
  font-size: 18px;
  line-height: 1.4;
}

.sample-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
}

.sample-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--hair);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: 52px 0 28px;
  border-bottom: 1px solid var(--hair);
}

.profile-hero h1 {
  font-size: clamp(58px, 10vw, 136px);
  line-height: 0.88;
}

.profile-hero p:not(.eyeline) {
  max-width: 560px;
  margin: 18px 0 24px;
  color: var(--ink-70);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.36;
}

.profile-cover {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--hair);
  background: var(--surface);
  overflow: hidden;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 680px;
  object-fit: cover;
}

.profile-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px;
  background: rgb(20 19 18 / 0.82);
  color: var(--paper);
  font-weight: 650;
}

.profile-hero > img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border: 1px solid var(--hair);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--hair);
}

.profile-stats span {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  color: var(--ink-50);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.profile-stats strong {
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 28px;
}

.profile-section {
  padding-bottom: 34px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
}

.collection-card {
  display: grid;
  border: 1px solid var(--hair);
  background: var(--surface);
}

.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collection-card span {
  padding: 14px 14px 0;
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.collection-card strong {
  padding: 10px 14px 18px;
  font-size: 22px;
  line-height: 1.08;
}

.profile-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0 72px;
  padding: 28px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.profile-cta h2 {
  max-width: 760px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 64px;
}

.profile-card {
  border: 1px solid var(--hair);
  background: var(--surface);
}

.profile-card a {
  display: block;
  height: 100%;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-card span {
  display: inline-block;
  margin: 14px 14px 0;
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.profile-card h2 {
  margin: 8px 14px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
  overflow-wrap: break-word;
}

.profile-card p {
  margin: 12px 14px 0;
  color: var(--ink-70);
  line-height: 1.4;
}

.profile-card small {
  display: block;
  margin: 18px 14px 16px;
  color: var(--ink-50);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .split-section,
  .profile-hero,
  .detail-hero,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: start;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    align-self: start;
    min-height: auto;
  }

  .hero-grid {
    min-height: 520px;
  }

  .recipe-grid,
  .stock-grid,
  .story-grid,
  .destination-grid,
  .collection-grid,
  .profile-grid,
  .profile-stats,
  .sample-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
  }

  .app-link,
  .app-badge {
    width: 100%;
  }

  .hero-grid,
  .recipe-grid,
  .stock-grid,
  .story-grid,
  .destination-grid,
  .collection-grid,
  .profile-grid,
  .profile-stats,
  .sample-strip {
    grid-template-columns: 1fr;
  }

  .profile-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-photo.large {
    grid-row: auto;
  }

  .feature-photo {
    min-height: 260px;
  }

  .hero-stats {
    display: none;
  }

  .index-list a,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
