/* ==========================================================================
   The Chef André — thechefandre.com
   Black and white. The photograph dissolves into the page.
   Display: Bodoni Moda. Everything read: Archivo. Fonts self-hosted.
   ========================================================================== */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); }

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink:          #000000;   /* true black: the photograph's own shadows sit at 1 */
  --paper:        #F2F0EC;
  --chalk:        #E9E7E3;
  --chalk-dim:    #908D87;
  --graphite:     #151515;
  --graphite-dim: #686660;

  --rule-light: rgba(233, 231, 227, 0.16);
  --rule-dark:  rgba(21, 21, 21, 0.16);

  /* A Didone for display only. Its hairlines vanish at small sizes,
     so nothing under about 1.3rem is ever set in it. */
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 6rem);
  --measure: 68ch;

  --step-xl:   clamp(2.2rem, 5.4vw, 4.2rem);
  --step-lg:   clamp(1.6rem, 3vw, 2.4rem);
  --step-md:   clamp(1.02rem, 1.4vw, 1.12rem);
  --step-sm:   0.95rem;
  --step-xs:   0.82rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-md);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--paper); color: var(--graphite);
  padding: 0.7rem 1.1rem; font-size: var(--step-sm);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Fields: the page alternates true black and paper
   -------------------------------------------------------------------------- */

.field { padding: clamp(4.5rem, 11vw, 9.5rem) var(--gutter); }
.field--paper { background: var(--paper); color: var(--graphite); }
.field--ink    { background: var(--ink);   color: var(--chalk); }
.field--tight  { padding-top: clamp(2rem, 4vw, 3.2rem); }

.wrap { max-width: 78rem; margin: 0 auto; }

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* A single measured column, for a section with no second voice. */
.column { max-width: 46rem; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 0 clamp(1.8rem, 3.5vw, 2.6rem);
}
.statement em { font-style: italic; }
.field--ink .statement { font-weight: 500; }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step-lg);
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0 0 1.5rem;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.25em; }
.prose p:last-child { margin-bottom: 0; }
.prose--dim { color: var(--graphite-dim); }
.field--ink .prose--dim { color: var(--chalk-dim); }

.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.6; }

.link {
  font-family: var(--sans);
  font-size: var(--step-sm);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
  transition: opacity 0.18s ease;
}
.link:hover { opacity: 0.62; }
.link--quiet { border-bottom-color: transparent; transition: border-color 0.18s ease; }
.link--quiet:hover { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) var(--gutter);
}
.masthead--static { position: static; }

.masthead__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--step-sm);
  letter-spacing: 0.005em;
  text-decoration: none;
}
.masthead__nav { display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.masthead__nav a {
  font-size: var(--step-xs);
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}
.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__figure { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.hero__figure img {
  position: absolute;
  top: 0;
  right: -5%;
  height: 120%;
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
          mask-image: linear-gradient(to right, transparent 0, #000 26%);
}

.hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 11rem; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.55) 45%, rgba(0,0,0,0));
}

.hero__type {
  position: relative; z-index: 10;
  padding: 0 var(--gutter) clamp(3.5rem, 9vh, 6.5rem);
  max-width: 34rem;
}

.hero__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.018em;
  margin: 0 0 1.2rem;
}
.hero__name span { display: block; }

.hero__line {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--chalk);
  max-width: 30ch;
  margin: 0 0 1.9rem;
}

@media (max-width: 860px) {
  .hero { display: block; min-height: 0; padding-top: clamp(5.5rem, 20vw, 8rem); }
  .hero::before { height: 7rem; }
  .hero__type { padding: 0 var(--gutter) 2.4rem; max-width: none; }
  .hero__figure { position: relative; inset: auto; height: 62vh; min-height: 20rem; }
  .hero__figure img {
    position: absolute; inset: 0; right: auto;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 36%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__figure img { animation: emerge 1500ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero__type > * { animation: settle 900ms ease both; }
  .hero__name { animation-delay: 420ms; }
  .hero__line { animation-delay: 620ms; }
  .hero__type .link { animation-delay: 780ms; }
}
@keyframes emerge { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(0.7rem); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Index list
   -------------------------------------------------------------------------- */

.index { margin: 0; padding: 0; list-style: none; }

.index__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-top: 1px solid var(--rule-light);
  align-items: start;
}
.field--paper .index__row { border-top-color: var(--rule-dark); }
.index__row:last-child { border-bottom: 1px solid var(--rule-light); }
.field--paper .index__row:last-child { border-bottom-color: var(--rule-dark); }

@media (max-width: 760px) { .index__row { grid-template-columns: 1fr; gap: 0.7rem; } }

.index--stacked .index__row { grid-template-columns: 1fr; gap: 0.4rem; }
.index--stacked .index__name { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.index--stacked .index__body { font-size: var(--step-sm); color: var(--graphite-dim); }
.field--ink .index--stacked .index__body { color: var(--chalk-dim); }
.index__row--solo { grid-template-columns: 1fr; }

.index__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.012em;
  line-height: 1.1;
  margin: 0;
}
.index__name a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.18s ease; }
.index__name a:hover { border-bottom-color: currentColor; }

.index__body { margin: 0; max-width: 56ch; }
.index__body p { margin: 0 0 0.7rem; }
.index__body p:last-child { margin-bottom: 0; }

.index__facts {
  font-size: var(--step-xs);
  letter-spacing: 0.012em;
  color: var(--chalk-dim);
  margin: 0.85rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem;
}
.field--paper .index__facts { color: var(--graphite-dim); }
.index__facts span { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Quotes
   -------------------------------------------------------------------------- */

.quotes { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.quote { margin: 0; max-width: 44ch; }
.quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.38;
  margin: 0 0 0.9rem;
  text-wrap: pretty;
}
.quote figcaption { font-size: var(--step-xs); letter-spacing: 0.015em; color: var(--graphite-dim); }
.field--ink .quote figcaption { color: var(--chalk-dim); }

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */

.qa { margin: 0; }
.qa__q {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step-md);
  line-height: 1.4;
  margin: 0 0 0.4rem;
}
.qa__a { margin: 0 0 1.9rem; max-width: var(--measure); color: var(--graphite-dim); }
.field--ink .qa__a { color: var(--chalk-dim); }
.qa__a:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Figures
   -------------------------------------------------------------------------- */

/* A plate, capped at the width its source resolution can carry sharply
   on a 2x screen. These crops are 1073px wide, so 536px is the ceiling. */
.plate { margin: 0; max-width: 33.5rem; }
.plate img { width: 100%; }
.plate figcaption {
  font-size: var(--step-xs);
  color: var(--graphite-dim);
  margin-top: 0.75rem;
  line-height: 1.45;
}
.field--ink .plate figcaption { color: var(--chalk-dim); }

.form__aside {
  font-size: var(--step-xs);
  color: var(--chalk-dim);
  margin: 1rem 0 0;
  max-width: 34ch;
  line-height: 1.5;
}

.pagehead__line a { color: inherit; }

.portrait { margin: 0; }
.portrait img { width: 100%; }
.portrait figcaption {
  font-size: var(--step-xs);
  color: var(--chalk-dim);
  margin-top: 0.8rem;
  line-height: 1.45;
}
.field--paper .portrait figcaption { color: var(--graphite-dim); }

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.closing__line {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-xl);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0 0 1.6rem;
  max-width: 14ch;
}
.field--ink .closing__line { font-weight: 500; }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form { max-width: 38rem; }
.form__group { margin: 0 0 2.6rem; padding: 0; border: 0; }
.form__legend {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.012em;
  padding: 0;
  margin: 0 0 1.3rem;
}
.form__field { margin: 0 0 1.4rem; }
.form__field label {
  display: block;
  font-size: var(--step-xs);
  letter-spacing: 0.015em;
  color: var(--chalk-dim);
  margin: 0 0 0.45rem;
}
.form input, .form select, .form textarea {
  width: 100%;
  background: transparent;
  color: var(--chalk);
  border: 0;
  border-bottom: 1px solid var(--rule-light);
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-size: var(--step-md);
  line-height: 1.5;
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.form select { appearance: none; }
.form select:has(option[value=""]:checked) { color: var(--chalk-dim); }
.form select option { background: #111; color: var(--chalk); }
.form textarea { resize: vertical; min-height: 7rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-bottom-color: var(--chalk);
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--chalk); outline-offset: 4px;
}
.form button {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step-sm);
  background: var(--chalk);
  color: var(--ink);
  border: 1px solid var(--chalk);
  padding: 0.85rem 2rem;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.form button:hover { background: transparent; color: var(--chalk); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink); color: var(--chalk);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule-light);
}
.footer__grid {
  max-width: 78rem; margin: 0 auto;
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer__name { font-weight: 600; font-size: var(--step-sm); margin: 0 0 0.5rem; }
.footer p { margin: 0; font-size: var(--step-sm); color: var(--chalk-dim); line-height: 1.6; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 0.45rem; }
.footer li a {
  font-size: var(--step-sm);
  text-decoration: none;
  color: var(--chalk-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer li a:hover { color: var(--chalk); border-bottom-color: var(--chalk); }

.footer__base {
  max-width: 78rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
  font-size: var(--step-xs);
  color: var(--chalk-dim);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Interior page header
   -------------------------------------------------------------------------- */

.pagehead {
  background: var(--ink);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}
.pagehead__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.3rem;
  max-width: 15ch;
}
.pagehead__line {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  color: var(--chalk);
  max-width: 40ch;
  margin: 0;
}

@media print {
  .masthead, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
