﻿/* ============================================================================
   The Mona Lisa — A.I. Louvre
   Gallery stylesheet. Built on the palette already established by the
   subscription email (deep forest / sage / amber / bone) so the site and the
   dispatch email read as one institution.

   Type roles
     · serif  — placards & reading prose (the printed-catalogue voice)
     · mono   — eyebrows, plate numbers, wall-labels, specimen data (the archive)
   Signature
     · every work is hung on a dim wall under a soft spotlight and tagged with a
       typewritten specimen label, exactly as the book frames AI's mistakes with
       mock-institutional gravity.
   ========================================================================== */

:root {
  --ink:        #11190F;   /* gallery wall, near-black forest            */
  --ink-2:      #0c120a;   /* deepest shadow / vignette                  */
  --panel:      #172116;   /* raised surface: labels, frames, forms      */
  --panel-2:    #1c281a;   /* hover / inset surface                      */
  --sage:       #A9BE92;   /* institutional accent, plate numbers        */
  --sage-dim:   #7e926a;   /* quieter sage                               */
  --amber:      #E0913F;   /* the distress signal — used sparingly       */
  --bone:       #ECE7D8;   /* titles & high-emphasis text                */
  --bone-body:  rgba(236,231,216,0.72);  /* reading prose                */
  --bone-mute:  rgba(236,231,216,0.46);  /* captions, secondary          */
  --bone-faint: rgba(236,231,216,0.26);  /* footnotes                    */
  --hair:       rgba(169,190,146,0.20);  /* sage hairline                */
  --hair-soft:  rgba(236,231,216,0.08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
           "Times New Roman", serif;
  --mono:  "Courier New", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 38rem;        /* reading column                             */
  --plate:   46rem;        /* artwork / plate column                     */
}

/* ---- reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone-body);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* dim-room atmosphere: a vignette pool of light + faint film grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 6%, rgba(169,190,146,0.05), transparent 55%),
    radial-gradient(120% 120% at 50% 50%, transparent 60%, var(--ink-2) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection { background: var(--sage); color: var(--ink); }

a { color: var(--sage); text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---- shared layout ------------------------------------------------------- */
.wrap { position: relative; z-index: 1; }

.col {
  width: min(92vw, var(--plate));
  margin-inline: auto;
}
.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
}
.eyebrow .sep { color: var(--sage-dim); margin: 0 0.4em; }

/* ---- top rail ------------------------------------------------------------ */
.toprail {
  position: sticky; top: 0; z-index: 50;
  background: var(--sage);
  color: var(--ink);
}
.toprail .col {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
}
.toprail b {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 700;
}
.toprail .domain {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(17,25,15,0.62);
}

/* ---- hero ---------------------------------------------------------------- */
.hero {
  padding: clamp(4.5rem, 13vh, 9rem) 0 clamp(3rem, 7vh, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--hair);
}
.hero .kicker {
  font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 2rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 9vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
}
.hero h1 .l2 { color: var(--amber); font-style: italic; }
.hero .lede {
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--sage);
  max-width: 30rem; margin: 1.8rem auto 0;
  line-height: 1.5;
}
.hero .by {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-mute); margin: 1.6rem 0 0;
}
.hero .stamp {
  display: inline-block; margin-top: 2.6rem;
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--bone-mute);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
    /* ---- hero cover plate ---------------------------------------------------- */
    .hero .cover {
        max-width: 20rem;
        margin: 0 auto 2.8rem;
        padding: clamp(0.6rem, 1.6vw, 0.9rem);
        background: linear-gradient(160deg, #20291d, #131c11);
        border: 1px solid var(--hair);
        border-radius: 2px;
        box-shadow: 0 1px 0 rgba(236,231,216,0.06) inset, 0 40px 70px -30px rgba(0,0,0,0.9), 0 0 100px -55px rgba(169,190,146,0.5);
    }

        .hero .cover img {
            border-radius: 1px;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
        }

/* ---- generic text sections (intro / acks / about) ------------------------ */
.text-section {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  width: min(92vw, var(--plate));
  margin-inline: auto;
  border-bottom: 1px solid var(--hair);
}
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--bone); margin: 0 0 2rem;
}
.text-section .prose { max-width: var(--measure); }
.text-section .prose p { margin: 0 0 1.3rem; }
.intro .prose > p:first-of-type::first-letter {
  font-size: 3.4em; line-height: 0.78; float: left;
  padding: 0.05em 0.12em 0 0; color: var(--amber);
  font-weight: 600;
}
.mini-head {
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); margin: 2.4rem 0 1rem;
}
.intro-list {
  list-style: none; padding: 0; margin: 0 0 1.3rem;
}
.intro-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem;
}
.intro-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--amber);
  font-family: var(--mono);
}

/* ---- the plate ----------------------------------------------------------- */
.plate {
  padding: clamp(4rem, 10vh, 7rem) 0;
  width: min(92vw, var(--plate));
  margin-inline: auto;
  border-bottom: 1px solid var(--hair);
}
.plate-head { max-width: var(--measure); margin: 0 auto clamp(2rem, 5vh, 3rem); text-align: center; }
.plate-head .eyebrow { color: var(--sage); margin-bottom: 1rem; }
.plate-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.06; letter-spacing: -0.015em;
  color: var(--bone); margin: 0;
}
.plate-sub {
  font-style: italic; color: var(--sage);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin: 0.7rem 0 0;
}

/* framed artwork on the wall */
.plate-figure { margin: 0 0 clamp(2rem, 5vh, 3rem); }
.frame {
  position: relative;
  margin-inline: auto;
  max-width: 40rem;
  padding: clamp(0.7rem, 2vw, 1.1rem);
  background: linear-gradient(160deg, #20291d, #131c11);
  border: 1px solid var(--hair);
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(236,231,216,0.06) inset,
    0 30px 60px -28px rgba(0,0,0,0.85),
    0 0 90px -50px rgba(169,190,146,0.5);
}
.frame img {
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}
/* a single, restrained "something is wrong" shimmer on hover */
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 2px; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(90deg,
    rgba(224,145,63,0.0), rgba(224,145,63,0.10), rgba(169,190,146,0.10), rgba(224,145,63,0.0));
}
.plate-figure:hover .frame::after { animation: glitch 0.5s steps(2) 1; }
@keyframes glitch {
  0%   { opacity: 0; transform: translateX(0); }
  40%  { opacity: 1; transform: translateX(-2px); }
  60%  { opacity: 1; transform: translateX(2px); }
  100% { opacity: 0; transform: translateX(0); }
}

/* lost works — no image was ever recorded */
.frame-empty {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3; max-width: 30rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(236,231,216,0.025) 14px 15px),
    linear-gradient(160deg, #1a231800, #0e150c);
  border-style: dashed;
  border-color: var(--hair);
}
.lost-mark {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--bone-mute);
}

/* the typewritten wall-label (placard) */
.wall-label {
  max-width: var(--measure); margin: 0 auto clamp(2rem, 5vh, 3rem);
  background: var(--panel);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--sage);
  padding: 1.1rem 1.3rem;
}
.wl-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.4rem 1.2rem;
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--hair-soft);
}
.wl-row:last-child { border-bottom: 0; }
.wall-label dt {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage-dim);
  padding-top: 0.15rem;
}
.wall-label dd {
  margin: 0; font-family: var(--mono); font-size: 0.86rem;
  color: var(--bone); line-height: 1.45;
}

/* narrative body */
.plate > p,
.plate blockquote,
.plate .characteristics { max-width: var(--measure); margin-inline: auto; }
.plate > p { margin: 0 auto 1.3rem; }

.block-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--amber);
  margin: 2.4rem auto 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hair);
}
blockquote.intent {
  margin: 0 auto 1.6rem; padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--sage-dim);
  font-style: italic; color: var(--bone);
  font-size: 1.05rem; line-height: 1.6;
}

/* physical characteristics — specimen data */
.characteristics { margin-top: 2.4rem; }
.spec-list { margin: 0; }
.sl-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 0.3rem 1.2rem;
  padding: 0.7rem 0; border-top: 1px solid var(--hair-soft);
}
.sl-row dt {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sage-dim); padding-top: 0.2rem;
}
.sl-row dd { margin: 0; font-size: 0.95rem; color: var(--bone-body); }

.archived {
  text-align: center; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-faint);
  margin: 2.4rem auto 0 !important;
}
.plate-end {
  text-align: center; color: var(--sage-dim); margin-top: 2.6rem;
  font-size: 0.8rem; letter-spacing: 0.5em;
}

/* interstitial divider between movements of the collection */
.interstitial {
  text-align: center; padding: clamp(3rem, 8vh, 5rem) 0;
  border-bottom: 1px solid var(--hair);
}
.interstitial p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  color: var(--sage); max-width: 26rem; margin: 0 auto;
}

/* colophon (acknowledgments / about) reads quieter */
.colophon .section-title { color: var(--sage); }

/* ---- subscribe module ---------------------------------------------------- */
.subscribe {
  padding: clamp(4.5rem, 11vh, 7rem) 0;
  border-bottom: 1px solid var(--hair);
}
.subscribe .panel {
  max-width: 34rem; margin-inline: auto; text-align: center;
}
.subscribe .eyebrow { color: var(--amber); }
.subscribe h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--bone); margin: 0 0 1rem;
}
.subscribe p.intro {
  color: var(--bone-body); margin: 0 auto 2rem; max-width: 28rem;
}
.signup {
  display: flex; gap: 0.6rem; max-width: 27rem; margin: 0 auto;
}
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  background: var(--panel); color: var(--bone);
  border: 1px solid var(--hair); border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
}
.signup input::placeholder { color: var(--bone-faint); }
.signup input:focus { outline: none; border-color: var(--sage); }
.signup button {
  flex: 0 0 auto; cursor: pointer;
  background: var(--sage); color: var(--ink);
  border: 1px solid var(--sage); border-radius: 2px;
  padding: 0.85rem 1.4rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease;
}
.signup button:hover { background: var(--bone); transform: translateY(-1px); }
.field-error {
  color: var(--amber); font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.04em;
  margin: 0.9rem 0 0; text-align: left;
}
.send-error {
  color: var(--amber); font-family: var(--mono);
  font-size: 0.7rem; margin: 1rem auto 0; max-width: 27rem;
}
.confirmed {
  max-width: 34rem; margin-inline: auto;
  background: var(--panel); border: 1px solid var(--hair);
  border-left: 2px solid var(--sage);
  padding: 2rem 2rem; text-align: left;
}
.confirmed .mark {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--sage); margin: 0 0 0.8rem;
}
.confirmed h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  color: var(--bone); margin: 0 0 0.7rem;
}
.confirmed p { color: var(--bone-body); margin: 0; }

/* ---- footer -------------------------------------------------------------- */
.site-foot {
  padding: 3.5rem 0 4.5rem; text-align: center;
}
.site-foot .mono {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--bone-faint); line-height: 2;
}
.site-foot .mono a { color: var(--sage-dim); }

/* ---- reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wl-row { grid-template-columns: 1fr; gap: 0.1rem; padding: 0.55rem 0; }
  .sl-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
  .toprail .domain { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .plate-figure:hover .frame::after { animation: none; }
}
