/* ============================================================
   ATELIER ROHAN — L'ÉTUDE DE CONSERVATION
   Editorial luxury. Cream / white / ink / hairline gray.
   Crimson appears only as the headline period, the CTA outline,
   and a small handful of micro-accents.
   ============================================================ */

:root {
  --parchment: #FAF7F2;   /* background */
  --white:     #FFFFFF;   /* cards / subtle blocks */
  --ink:       #1A1A1A;   /* primary text */
  --muted:     #8A8580;   /* secondary text */
  --hairline:  #E8E4DE;   /* dividers / borders */
  --crimson:   #8B1E1E;   /* used sparingly */

  --display: "Bodoni Moda", "Times New Roman", serif;
  --ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 640px;        /* max content width */
  --gutter: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- typographic primitives ---------- */

/* tiny tracked label */
.label {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) { .label { font-size: 11px; } }

/* display headline — Bodoni italic */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.display-xl {            /* hero masthead */
  font-size: clamp(3.25rem, 13vw, 7.5rem);  /* ~52pt mobile → ~120pt desktop */
}
.display-lg {            /* section / pricing headline */
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}
.display-md {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

/* the single crimson period */
.period { color: var(--crimson); }

/* italic Bodoni body — used for invitations / subtitles */
.serif-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
}

.subtitle {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(1.125rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  margin: 0;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-wide {
  max-width: 960px;
}

/* top padding rules: 80pt mobile, 160pt desktop before content */
.lede {
  padding-top: 80px;
}
@media (min-width: 768px) {
  .lede { padding-top: 160px; }
}

section { padding-block: 64px; }
@media (min-width: 768px) { section { padding-block: 104px; } }

/* ---------- hairline ornament divider ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block: 8px;
  color: var(--muted);
}
.ornament::before,
.ornament::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--hairline);
}
.ornament span {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1;
}

/* ---------- masthead / nav ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.masthead .shell {
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.wordmark {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.masthead nav {
  display: flex;
  gap: 28px;
}
.navlink {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.navlink:hover { color: var(--ink); }
@media (max-width: 520px) {
  .masthead nav { gap: 18px; }
  .navlink span.full { display: none; }
}

/* ---------- App Store badge ---------- */
.appstore {
  display: inline-block;
  transition: opacity 160ms ease;
}
.appstore:hover { opacity: 0.82; }
.appstore img { height: 52px; width: auto; }

/* ---------- coming-soon CTA (stores in private testing) ---------- */
.coming { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.coming-badge {
  display: inline-block;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--crimson);
  padding: 14px 30px;
  margin: 0;
}
.coming-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}
.footer-soon {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- outlined hairline button (no fill, ever) ---------- */
.frame-btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 34px;
  border: 1px solid var(--crimson);
  background: transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.frame-btn:hover {
  color: var(--crimson);
}

/* ---------- scroll cue ---------- */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.scroll-cue .label { color: var(--muted); }
.scroll-cue .tick {
  width: 1px;
  height: 44px;
  background: var(--hairline);
}

/* ---------- features ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding-block: 56px;
  border-top: 1px solid var(--hairline);
}
.feature:first-of-type { border-top: none; }
.feature .numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 40ch;
}
.feature .free {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson);
}

@media (min-width: 820px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    padding-block: 80px;
  }
  /* alternate: even features put art on the left */
  .feature.flip .copy { order: 2; }
  .feature.flip .art  { order: 1; }
  .feature .art { display: flex; justify-content: center; }
}

/* ---------- real screenshot frame (no fake notch — capture has its own) ---------- */
.shot {
  width: min(270px, 72vw);
  aspect-ratio: 1320 / 2868;            /* iPhone 17 Pro Max capture ratio */
  border: 1px solid var(--hairline);
  border-radius: 46px;
  overflow: hidden;
  background: var(--white);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* faux screen for the one feature without a capture (parfum composition).
   Built to read like the app's Parchment screens. */
.shot .faux {
  width: 100%; height: 100%;
  background: var(--parchment);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.faux-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 0;
  font-family: var(--ui); font-size: 11px; font-weight: 600;
}
.faux-bar .island {
  width: 64px; height: 18px; border-radius: 11px; background: var(--ink);
}
.faux-bar .sig { font-size: 9px; letter-spacing: 0.1em; color: var(--ink); }
.faux-body { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.faux-body .f-kicker {
  font-family: var(--ui); font-size: 8px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--muted);
}
.faux-body .f-title {
  font-family: var(--display); font-style: italic; font-size: 1.9rem; line-height: 1.04; margin: 2px 0 6px;
}
.faux-body .f-rule { height: 1px; background: var(--hairline); }
.faux-body .f-note { display: flex; justify-content: space-between; align-items: baseline; }
.faux-body .f-note .f-name { font-family: var(--display); font-style: italic; font-size: 0.95rem; }
.faux-body .f-note .f-tier {
  font-family: var(--ui); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.faux-body .f-spacer { flex: 1; }
.faux-body .f-foot {
  font-family: var(--ui); font-size: 8px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- iPhone mockup (hairline only, no shadow/gradient) ---------- */
.device {
  position: relative;
  width: 248px;
  aspect-ratio: 248 / 508;
  border: 1.5px solid var(--ink);
  border-radius: 42px;
  padding: 10px;
  background: var(--white);
}
.device::after {            /* notch hairline */
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 5px;
  border-radius: 3px;
  background: var(--hairline);
}
.device .screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
}
.device.small { width: 188px; }

/* placeholder app screen — editorial composition */
.screen-app {
  padding: 34px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.screen-app .s-label {
  font-family: var(--ui);
  font-size: 7px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.screen-app .s-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.05;
}
.screen-app .s-rule {
  height: 1px;
  background: var(--hairline);
}
.screen-app .s-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.8rem;
}
.screen-app .s-row .s-meta {
  font-family: var(--ui);
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.screen-app .s-spacer { flex: 1; }
.screen-app .s-stat {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
}
.screen-app .s-dot { color: var(--crimson); }

/* ---------- themes ---------- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 24px;
  justify-items: center;
  margin-top: 56px;
}
@media (min-width: 900px) {
  .themes-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.themes-grid .shot { width: min(192px, 40vw); border-radius: 34px; }

/* theme-colored faux cabinet (for themes lacking a real capture) */
.faux-cab {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.faux-cab .fc-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 0; font-family: var(--ui); font-size: 9px; font-weight: 600;
}
.faux-cab .fc-bar .island { width: 50px; height: 14px; border-radius: 9px; background: currentColor; opacity: 0.92; }
.faux-cab .fc-bar .sig { font-size: 7px; letter-spacing: 0.08em; }
.faux-cab .fc-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.faux-cab .fc-kicker { font-family: var(--ui); font-size: 6.5px; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.55; }
.faux-cab .fc-h { font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1; }
.faux-cab .fc-card {
  border: 1px solid currentColor; border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.faux-cab .fc-card.soft { opacity: 0.92; }
.faux-cab .fc-vlabel { font-family: var(--ui); font-size: 6px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; }
.faux-cab .fc-value { font-family: var(--display); font-style: normal; font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; }
.faux-cab .fc-row { display: flex; justify-content: space-between; align-items: baseline; }
.faux-cab .fc-name { font-family: var(--display); font-style: italic; font-size: 0.82rem; }
.faux-cab .fc-meta { font-family: var(--ui); font-size: 6px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.faux-cab .fc-rule { height: 1px; background: currentColor; opacity: 0.16; }
.theme-card { text-align: center; }
.theme-card .theme-name {
  margin-top: 22px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.theme-card .theme-sub {
  margin-top: 6px;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
}

/* themed screens — these are the ONLY colored surfaces, contained inside
   device screens. The website chrome itself stays cream. */
.scr-parchment { background: #FAF7F2; color: #1A1A1A; }
.scr-espresso  { background: #161210; color: #EDE6DD; }
.scr-bordeaux  { background: #3A1014; color: #F0DADA; }
.scr-pivoine   { background: #F7E7E7; color: #4A2630; }
.themed-screen {
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.themed-screen .ts-label {
  font-family: var(--ui);
  font-size: 6.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
}
.themed-screen .ts-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.05;
}
.themed-screen .ts-rule { height: 1px; background: currentColor; opacity: 0.18; }
.themed-screen .ts-row {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.78rem;
  opacity: 0.85;
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  justify-items: center;
}
.pricing-art { display: flex; justify-content: center; }
@media (min-width: 820px) {
  .pricing-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .pricing-grid .pricing { text-align: left; justify-self: start; }
  .pricing-grid .pricing p { margin-left: 0; }
  .pricing-art { order: 2; }
}
.pricing { text-align: center; }
.pricing .price {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
  margin: 14px 0 26px;
}
.pricing p {
  max-width: 46ch;
  margin: 0 auto 38px;
  color: var(--ink);
}

/* ---------- promise ---------- */
.promise {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.promise .shell { text-align: center; }
.promise p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 32ch;
}

/* ---------- generic editorial blocks ---------- */
.kicker { margin-bottom: 22px; }
.lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
}
.lead.muted { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 16px; }
.faq-item {
  padding-block: 34px;
  border-top: 1px solid var(--hairline);
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.faq-a {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--ink);
  margin: 0;
}

/* ---------- contact line ---------- */
.contact {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  margin: 24px 0 0;
}
.contact a {
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: border-color 160ms ease;
}
.contact a:hover { border-color: var(--crimson); }

/* ---------- privacy preamble ---------- */
.meta-line {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 10px 0 0;
}
.preamble {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 30px 0 0;
  max-width: 52ch;
}

/* ---------- privacy prose ---------- */
.prose h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.65rem;
  margin: 48px 0 14px;
}
/* per-platform sub-block within a section */
.prose .plat {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 16px 20px;
  margin: 0 0 14px;
}
.prose .plat .plat-label {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 6px;
}
.prose .plat p { margin: 0; color: var(--ink); }
.prose h3 {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 34px 0 12px;
}
.prose p { margin: 0 0 18px; color: var(--ink); line-height: 1.75; }
.prose ul { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink); }
.prose li { margin-bottom: 10px; line-height: 1.7; }
.prose a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }
.prose .placeholder {
  border: 1px solid var(--hairline);
  background: var(--white);
  padding: 22px 24px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--display);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px;
}
.site-footer .shell {
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- correspondence form ---------- */
.atelier-form {
  max-width: 34rem;
  margin: 36px 0 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 620px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
}
.form-row .field { margin-top: 0; }
.field-label {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  font-family: var(--ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 180ms ease;
}
.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crimson);
}
.form-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.frame-btn[type="submit"] {
  cursor: pointer;
  font-family: var(--ui);
}
.frame-btn[disabled] { opacity: 0.45; cursor: default; }
.form-status {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
}
.form-status.ok { color: var(--ink); }
.form-status.err { color: var(--crimson); }
/* honeypot — kept out of view from humans and assistive tech */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- reduced-motion friendly: nothing animates beyond opacity ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
