:root {
  --ink: #141211;
  --paper: #f3ede2;
  --paper-deep: #ece4d3;
  --ivory: #fbf7ef;
  --burgundy: #6e1f2b;
  --tobacco: #a07956;
  --grey: #746e67;
  --night: #211f1d;
  --line-soft: rgba(20, 18, 17, 0.18);
  --line-strong: rgba(20, 18, 17, 0.34);

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "Literata", "Source Serif 4", Georgia, serif;
  --font-label: "Literata", Georgia, serif;

  --measure: 68ch;
  --measure-narrow: 56ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 7rem);
  --radius: 0.35rem;
  --shadow-soft: 0 16px 30px rgba(17, 14, 13, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 1.05rem;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("assets/svg/grain.svg") center / 280px 280px repeat;
  opacity: 0.08;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.site-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.75rem;
  z-index: 5;
}

.skip-link:focus-visible {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(3px);
  background: rgba(243, 237, 226, 0.88);
  z-index: 10;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.95rem 0 0.9rem;
}

.top-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.top-nav a {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  color: var(--grey);
  padding-bottom: 0.12rem;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--burgundy);
}

.section {
  padding: var(--section-y) 0;
}


.label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--grey);
  margin-bottom: 1rem;
}

.hero {
  padding-top: clamp(3.2rem, 11vw, 3.5rem);
  padding-bottom: 0;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-text {
  padding-bottom: var(--section-y);
}

.hero h1 {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  max-width: 16ch;
  line-height: 1;
}

.hero-intro {
  margin-top: 1.45rem;
  max-width: var(--measure-narrow);
}

.hero-intro p {
  font-size: 1.08rem;
  color: var(--grey);
}

.footnote-link {
  color: var(--burgundy);
  font-family: var(--font-body);
  margin-left: 0.05em;
  border-bottom: 1px dotted rgba(110, 31, 43, 0.55);
  transition: color 160ms ease, border-color 160ms ease;
}

.footnote-link sup {
  font-size: 0.5em;
  font-feature-settings: "sups" on;
  line-height: 1;
  vertical-align: super;
  padding: 0 0.05em;
}

.footnote-link:hover,
.footnote-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.95rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--burgundy);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.hero-portrait {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 380px;
}

.hero-portrait img {
  max-height: 610px;
  width: auto;
  max-width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.margin-note {
  align-self: flex-end;
  margin: 0 0 1.25rem;
  max-width: 24ch;
  text-align: right;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  border-right: 1px solid rgba(110, 31, 43, 0.45);
  padding-right: 0.55rem;
}

.universe {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.universe .label {
  display: block;
  text-align: center;
  margin-bottom: 1.6rem;
}

.universe .universe-body {
  max-width: 56ch;
  margin: 1.6rem auto 0;
}

.universe-section {
  background: var(--night);
  color: var(--paper);
  position: relative;
}

.universe-section .label {
  color: rgba(243, 237, 226, 0.55);
}

.universe-section p {
  color: rgba(243, 237, 226, 0.82);
}

.universe-section .pull-quote {
  color: var(--paper);
  margin-top: 0;
  line-height: 1.2;
}

.universe-section .pull-quote::after {
  background: rgba(160, 121, 86, 0.7);
}

.pull-quote {
  margin: 2.1rem auto 0;
  max-width: 42ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.9vw, 2.3rem);
  color: var(--ink);
}

.pull-quote::after {
  content: "";
  display: block;
  width: 110px;
  height: 1px;
  margin: 1.8rem auto 0;
  background: var(--burgundy);
}

.bio-wrapper {
  position: relative;
  padding-top: 0.5rem;
}

.bio-number {
  font-family: var(--font-display);
  color: var(--grey);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.bio-copy {
  max-width: var(--measure-narrow);
}

.bio-copy p {
  color: var(--grey);
}

.bio-copy em {
  color: var(--ink);
  font-style: italic;
}

.bio {
  background: var(--paper-deep);
}

.bio-note {
  margin: 1.6rem 0 0 auto;
  max-width: 24ch;
  text-align: right;
  color: var(--burgundy);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  border-right: 1px solid rgba(110, 31, 43, 0.45);
  padding-right: 0.55rem;
}

.stories {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.projets {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.stories-header {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.stories-header h2 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  margin-bottom: 0.6rem;
}

.stories-subtitle {
  color: var(--grey);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin: 0;
}

.stories-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.2rem, 2.5vw, 1.8rem);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-card:hover,
.story-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(110, 31, 43, 0.45);
  box-shadow: var(--shadow-soft);
}

.story-tone {
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  margin: 0 0 1.6rem;
}

.story-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  max-width: 20ch;
}

.story-mark {
  display: block;
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--burgundy);
  user-select: none;
  opacity: 0.85;
}

.story-description {
  color: var(--grey);
  max-width: 28ch;
  margin: 0 0 1.8rem;
  line-height: 1.55;
}

.story-link {
  display: inline-block;
  color: var(--burgundy);
  border-bottom: 1px solid rgba(110, 31, 43, 0.48);
  padding-bottom: 0.08rem;
  margin-top: auto;
  font-family: var(--font-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact h2,
.merci h2,
.bio h2 {
  font-size: clamp(1.95rem, 5.5vw, 3rem);
  margin-bottom: 1rem;
}

.projets-shell {
  max-width: 640px;
  margin: 0 auto;
}

.projets-title {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: var(--ink);
  margin: 0 0 clamp(2rem, 4vw, 2.8rem);
}

.projets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2rem);
}

.projets-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.projets-mark {
  color: var(--burgundy);
  font-size: 1.15rem;
  line-height: 1.4;
  text-align: center;
  user-select: none;
}

.projets-entry p {
  color: var(--grey);
  margin: 0 0 0.35rem;
}

.projets-entry p:last-child {
  margin-bottom: 0;
}

.projets-meta {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.projets-entry em {
  color: var(--ink);
}

.contact-section {
  background: var(--night);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-intro .label {
  color: rgba(243, 237, 226, 0.55);
  margin-bottom: 1.1rem;
}

.contact-intro h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--paper);
  margin-bottom: 1rem;
}

.contact-intro p {
  color: rgba(243, 237, 226, 0.78);
  max-width: 32ch;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: rgba(243, 237, 226, 0.6);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--paper);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(243, 237, 226, 0.28);
  padding: 0.55rem 0;
  border-radius: 0;
  transition: border-color 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(243, 237, 226, 0.35);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--burgundy);
}

.contact-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--night);
  background: var(--paper);
  border: 1px solid var(--paper);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, color 170ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  transform: translateY(-2px);
  background: var(--burgundy);
  color: var(--paper);
  border-color: var(--burgundy);
  outline: none;
}

.site-footer {
  background: var(--paper);
  padding: 1.6rem 0;
  font-size: 0.9rem;
  color: var(--grey);
}

.remerciements-section {
  background: var(--paper);
}

.remerciements {
  /* max-width: 760px; */
  margin: 0 auto;
  text-align: center;
}

.remerciements .label {
  margin-bottom: 1.2rem;
}

.remerciements-text {
  color: var(--grey);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
}

.remerciements-text em {
  color: var(--ink);
  font-style: italic;
}

.remerciements-quote {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 3.25rem;
  line-height: 1.2em;
}

.site-footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.82rem;
  color: var(--grey);
}

.site-footer .dot {
  color: var(--burgundy);
}

.footnote {
  max-width: var(--measure-narrow);
  color: var(--grey);
  font-size: 0.92rem;
}

.story-page {
  min-height: 100vh;
}

.story-page main.site-shell {
  max-width: 760px;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.story-header {
  padding: clamp(2.5rem, 8vw, 4.4rem) 0 0;
}

.story-back {
  display: inline-block;
  color: var(--burgundy);
  border-bottom: 1px solid rgba(110, 31, 43, 0.45);
  padding-bottom: 0.1rem;
}

.breadcrumb {
  margin-top: 1.4rem;
  color: var(--grey);
  font-size: 0.87rem;
  letter-spacing: 0.02em;
}

.story-title-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.story-title-block h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin-top: 1.1rem;
}

.story-meta {
  margin-top: 1.6rem;
  color: var(--grey);
  font-style: italic;
  font-size: 0.95rem;
}

.story-lede {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.story-content {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
}

.story-content p {
  margin: 0 0 1.35rem;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-content p:first-of-type::first-letter {
  float: left;
  margin: 0.08rem 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 3.7rem;
  line-height: 0.9;
  color: var(--burgundy);
}

.fleuron {
  display: block;
  margin: clamp(3.5rem, 7vw, 5rem) auto clamp(2rem, 4vw, 2.8rem);
  width: 3rem;
  height: 1px;
  background: var(--burgundy);
}

.story-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.story-nav a {
  color: var(--burgundy);
  border-bottom: 1px solid rgba(110, 31, 43, 0.45);
  padding-bottom: 0.1rem;
}

.story-page .footnote {
  text-align: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: none;
  color: var(--grey);
  font-style: italic;
  font-size: 0.9rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.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;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: end;
  }

  .stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1fr;
  }

  .bio-note {
    position: absolute;
    right: 0;
    top: 4rem;
    margin: 0;
  }
}
