/* ===================================================================
   OdieBlackmon.com — Midnight Study design system
   Deep navy carried wall to wall; brass and leather as warm accents.
   =================================================================== */

:root {
  --navy: #0c1524;
  --navy-panel: #0a121f;
  --navy-deep: #08101b;
  --navy-glow: #14243d;
  --cream: #f0e9dd;
  --body: #aebdd1;
  --muted: #8fa3bd;
  --meta: #7e90a8;
  --brass: #c9a06a;
  --brass-bright: #e0bd8a;
  --on-brass: #17110a;
  --leather-1: #4a2f1c;
  --leather-2: #3a2415;
  --leather-3: #2c1a0f;
  --leather-spine: #241308;
  --hairline-brass: rgba(201, 160, 106, 0.28);
  --hairline-brass-soft: rgba(201, 160, 106, 0.18);
  --hairline-slate: rgba(143, 163, 189, 0.16);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', cursive;
  --pad-x: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain atmosphere: a film of SVG noise over everything.
   pointer-events none keeps it inert; opacity kept very low. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("../textures/grain.svg");
  background-size: 280px 280px;
}

a { color: var(--brass); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--brass-bright); }

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

.serif { font-family: var(--serif); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--cream); margin: 0; text-wrap: balance; }

p { margin: 0; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.container { padding-left: var(--pad-x); padding-right: var(--pad-x); max-width: 1440px; margin: 0 auto; }

/* --------------------------------------------------------------
   Masthead (journal style)
   -------------------------------------------------------------- */

.masthead { position: relative; z-index: 10; }
.masthead__rule { height: 3px; background: var(--brass); margin-top: 32px; }
.masthead__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--hairline-brass);
}
.masthead__name { font-family: var(--serif); font-size: 26px; letter-spacing: 0.03em; color: var(--cream); display: inline-flex; align-items: center; gap: 14px; }
.masthead__mark { width: 34px; height: 34px; border-radius: 50%; display: block; }
.masthead__nav { display: flex; gap: clamp(18px, 2.5vw, 36px); align-items: baseline; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.masthead__nav a { color: var(--body); }
.masthead__nav a:hover { color: var(--brass-bright); }
.masthead__nav a[aria-current="page"] { color: var(--brass-bright); }
.masthead__cta { color: var(--brass-bright) !important; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }

/* --------------------------------------------------------------
   Buttons
   -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 30px;
  cursor: pointer;
  border: none;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}
.btn--brass { background: var(--brass); color: var(--on-brass); }
.btn--brass:hover { background: var(--brass-bright); color: var(--on-brass); box-shadow: 0 6px 24px rgba(201, 160, 106, 0.25); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brass-bright); border: 1px solid var(--brass); padding: 15px 29px; }
.btn--ghost:hover { background: rgba(201, 160, 106, 0.08); color: var(--brass-bright); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }

/* --------------------------------------------------------------
   Bookplate frame — the brass double-rule + corner ticks that
   dress featured imagery. Signature geometry of the site.
   -------------------------------------------------------------- */

.plate { position: relative; }
.plate img { position: relative; z-index: 1; }
.plate::before {
  content: "";
  position: absolute;
  inset: 24px -16px -24px 16px;
  border: 1px solid rgba(201, 160, 106, 0.4);
  z-index: 0;
}
.plate::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--brass) 0 0) top left / 22px 1px,
    linear-gradient(var(--brass) 0 0) top left / 1px 22px,
    linear-gradient(var(--brass) 0 0) top right / 22px 1px,
    linear-gradient(var(--brass) 0 0) top right / 1px 22px,
    linear-gradient(var(--brass) 0 0) bottom left / 22px 1px,
    linear-gradient(var(--brass) 0 0) bottom left / 1px 22px,
    linear-gradient(var(--brass) 0 0) bottom right / 22px 1px,
    linear-gradient(var(--brass) 0 0) bottom right / 1px 22px;
  background-repeat: no-repeat;
  opacity: 0.9;
}

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

.hero {
  position: relative;
  overflow: hidden;
  /* Tint deepened to sit with the Odietone's ambience (photo ground ~#0c1622)
     while the lamplight texture still breathes through on the right. */
  background:
    linear-gradient(105deg, rgba(11, 20, 33, 0.93) 0%, rgba(11, 20, 33, 0.78) 52%, rgba(11, 20, 33, 0.55) 100%),
    url("../textures/hero-atmosphere.jpg") center top / cover no-repeat,
    var(--navy);
}


.hero > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------- */

.section { border-top: 1px solid var(--hairline-brass-soft); }
.section--panel { background: var(--navy-panel); }
.section--deep { background: var(--navy-deep); }

.rule-fade { height: 1px; background: linear-gradient(90deg, rgba(201, 160, 106, 0.55), rgba(201, 160, 106, 0.08)); border: none; margin: 0; }

/* Ledger rows (catalogue, accomplishments) */
.ledger-head {
  display: grid;
  gap: 22px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(201, 160, 106, 0.35);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-row {
  display: grid;
  gap: 22px;
  padding: 19px 8px;
  border-bottom: 1px solid var(--hairline-slate);
  align-items: baseline;
  transition: background 160ms ease;
}
.ledger-row:hover { background: rgba(20, 36, 61, 0.45); }
.ledger-row .song { font-family: var(--serif); font-size: 21px; color: var(--cream); }
.ledger-row .artist { font-size: 14px; color: var(--body); }
.ledger-row .meta { font-size: 13px; color: var(--muted); }
.ledger-row .honor { font-size: 13px; color: var(--brass); text-align: right; letter-spacing: 0.05em; }

/* --------------------------------------------------------------
   Reveal choreography — one orchestrated system.
   .reveal children rise and fade as they enter the viewport;
   stagger with --d (delay). Content is VISIBLE by default and
   only hides when the runtime adds .js to <html>.
   -------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------
   Forms
   -------------------------------------------------------------- */

.field {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(143, 163, 189, 0.3);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  padding: 15px 16px;
  transition: border-color 160ms ease;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--brass); }
textarea.field { resize: vertical; min-height: 110px; }

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

.footer { background: var(--navy-deep); border-top: 1px solid var(--hairline-brass-soft); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 40px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--meta);
}

/* --------------------------------------------------------------
   Leather (scrapbook cover) — layered gradients + grain
   -------------------------------------------------------------- */

.leather {
  background:
    linear-gradient(135deg, rgba(74, 47, 28, 0.22) 0%, rgba(30, 17, 9, 0.55) 100%),
    url("../textures/leather-dark.jpg") center / cover,
    linear-gradient(135deg, var(--leather-1) 0%, var(--leather-2) 55%, var(--leather-3) 100%);
}

/* --------------------------------------------------------------
   Responsive
   -------------------------------------------------------------- */

@media (max-width: 900px) {
  .masthead__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .masthead__nav { flex-wrap: wrap; row-gap: 10px; }
  .plate::before { inset: 14px -8px -14px 8px; }
}
