/* lola-aurora: shared styles
   Brand style: mid-century New York, made modern.
   Colors, type and spacing follow the "lola-aurora brand style".
*/
:root {
  --parchment: #E3D3B1;
  --parchment-light: #EDE0C4;
  --linen: #FBF8F1;
  --ink: #1F2A44;
  --ink-soft: #3D3A33;
  --muted: #5C5648;
  --rule: #D9CFBC;
  --on-ink: #E6DCC6;
  --teal: #2F6B66;
  --teal-dark: #224F4B;
  --brick: #B4472F;
  --hudson: #3E6A8A;
  --mustard: #D2A13A;
  --rose: #D9A79A;

  --script: "Yesteryear", "Brush Script MT", cursive;
  --display: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --shadow-print: 4px 4px 0 var(--mustard);
  --shadow-print-ink: 4px 4px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--parchment);
  background-image: radial-gradient(rgba(31, 42, 68, 0.06) 1px, transparent 1.2px);
  background-size: 7px 7px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.19rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.5em; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.panel-bg { background: var(--parchment-light); }

/* Header */
.site-header { background: var(--parchment-light); border-bottom: 5px double var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--script); font-size: 44px; line-height: 1; transform: rotate(-3deg); transform-origin: left center; }
.brand-tag { margin: 2px 0 0 18px; padding-top: 3px; border-top: 2px solid var(--mustard); font-family: var(--display); font-style: italic; font-size: 14px; color: var(--ink-soft); }
.nav-toggle { display: none; font: inherit; font-weight: 600; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.site-nav .nav-login { margin-left: 6px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; }
.site-nav .nav-login:hover { background: var(--ink); color: var(--linen); }
.site-nav .nav-cta { margin-left: 6px; padding: 10px 18px; background: var(--ink); color: #fff; font-weight: 600; border-radius: 999px; box-shadow: 3px 3px 0 var(--mustard); }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--teal); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; padding-bottom: 8px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .nav-login, .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: 16px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-print);
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.btn-light { background: var(--linen); color: var(--teal-dark); border-color: var(--linen); box-shadow: var(--shadow-print-ink); }
.btn-light:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-ink { background: var(--ink); color: var(--parchment); }
.section-ink h2 { color: #fff; }
.page-intro { padding: clamp(64px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); background: var(--parchment-light); }
.page-intro h1 { max-width: 16ch; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.key-fact { border-left: 3px solid var(--mustard); padding-left: 20px; color: var(--ink-soft); font-size: 1rem; }

/* Hero */
.hero { background: var(--parchment-light); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: clamp(56px, 8vw, 88px); }
.hero-copy { flex: 1 1 480px; min-width: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-copy .lede { margin-bottom: 16px; color: var(--ink); }
.hero-copy .aside { color: var(--muted); margin-bottom: 36px; }
.hero-note { margin: 20px 0 0; font-size: 0.94rem; color: var(--muted); }

/* Book shelf */
.shelf-art { flex: 1 1 340px; min-width: 0; position: relative; overflow: hidden; }
.spines { display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; height: 470px; padding-right: 12px; }
.spine {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 20px 0 16px; border-radius: 3px 3px 0 0;
  box-shadow: inset 0 16px 0 rgba(0,0,0,0.14), inset 0 -34px 0 rgba(255,255,255,0.12);
}
.spine-title { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); text-orientation: sideways; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: calc(100% - 44px); }
.spine-mark { width: 20px; height: 1px; }
.shelf { height: 10px; background: var(--ink); }
.shelf-edge { height: 3px; background: var(--mustard); }
.seal {
  position: absolute; top: 150px; left: 0; z-index: 1; width: 116px; height: 116px; border-radius: 50%;
  background: var(--brick); color: var(--linen); display: flex; align-items: center; justify-content: center;
  transform: rotate(-12deg); box-shadow: var(--shadow-print-ink); text-align: center;
}
.seal-ring { width: 98px; height: 98px; border-radius: 50%; border: 1.5px dashed var(--linen); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; }
.seal-big { font-family: var(--display); font-size: 23px; line-height: 1; }
.seal-small { font-size: 11px; font-weight: 600; line-height: 1.25; margin-top: 4px; }
@media (max-width: 520px) {
  .spines { height: 380px; gap: 4px; }
  .spine-title { font-size: 14px !important; }
  .seal { display: none; }
  .spines { justify-content: center; padding-right: 0; }
}

/* Two-column intro + grid */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 360px; min-width: 0; }
.split > .wide { flex: 1.4 1 520px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.pillars > div { border-top: 3px solid var(--teal); padding-top: 20px; }
.pillars > div:nth-child(2) { border-top-color: var(--brick); }
.pillars > div:nth-child(3) { border-top-color: var(--hudson); }
.pillars > div:nth-child(4) { border-top-color: var(--mustard); }
.pillars p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Boss section */
.boss .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.boss .wrap > * { flex: 1 1 420px; min-width: 0; }
.boss p.intro { color: var(--on-ink); margin-bottom: 36px; }
.picker { background: var(--linen); color: var(--ink); border-radius: 4px; padding: 28px; }
.picker-q { margin: 0 0 14px; font-weight: 600; }
.picker-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.picker-options button {
  min-height: 48px; padding: 10px 8px; font: inherit; font-size: 0.94rem; font-weight: 600; cursor: pointer;
  border-radius: 3px; border: 1px solid #CFC4AE; background: #fff; color: var(--ink);
}
.picker-options button[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.picker-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
.picker-note svg { flex: none; margin-top: 2px; }
.picker-note p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 480px) { .picker-options { grid-template-columns: 1fr; } }
.rights { list-style: none; margin: 0; padding: 0; }
.rights li { padding: 18px 0; border-top: 1px solid #3A4560; }
.rights li:last-child { border-bottom: 1px solid #3A4560; }
.rights strong { display: block; color: #fff; font-weight: 600; }
.rights span { color: var(--on-ink); }

/* Steps: a real sequence */
.steps-head { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.steps-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.steps-head .key-fact { flex: 0 1 360px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); row-gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 20px 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 52px; line-height: 1; color: var(--ink); margin-bottom: 18px; }
.steps p { font-size: 0.94rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) { .steps li { border-left: 0; padding-left: 0; } }

/* Panels */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.panel { background: var(--parchment-light); border: 1px solid var(--rule); border-radius: 4px; padding: 32px; }
.panel ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 1rem; display: grid; gap: 10px; }
.panel-teal { background: var(--teal); border-color: var(--teal); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.panel-teal p { color: #E4EFEC; }

/* Closing band */
.closing { background: var(--parchment-light); border-top: 1px solid var(--rule); padding: clamp(64px, 8vw, 96px) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.closing h2 { flex: 1 1 520px; margin: 0; max-width: 18em; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }

/* Library */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { font: inherit; font-size: 0.94rem; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--linen); }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 28px; }
.book { margin: 0; }
.cover {
  aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; padding: 22px 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 8px 0 0 rgba(0,0,0,0.14), var(--shadow-print-ink);
}
.cover::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 18%; background: rgba(255,255,255,0.12); }
.cover-title { position: relative; font-family: var(--display); font-size: 1.55rem; line-height: 1.1; }
.cover-author { position: relative; font-size: 0.9rem; }
.c-ink { background: var(--ink); color: var(--parchment); }
.c-teal { background: var(--teal); color: #fff; }
.c-brick { background: var(--brick); color: #fff; }
.c-hudson { background: var(--hudson); color: #fff; }
.c-mustard { background: var(--mustard); color: var(--ink); }
.c-rose { background: var(--rose); color: var(--ink); }
.book figcaption { padding-top: 16px; font-size: 0.94rem; color: var(--muted); }
.book figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.lock { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 0.88rem; color: var(--teal-dark); }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service { background: var(--parchment-light); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; }
.service p { color: var(--muted); font-size: 1rem; margin: 0; }
.placeholder { display: inline-block; padding: 2px 8px; border: 1px dashed var(--muted); border-radius: 3px; color: var(--ink-soft); font-size: 0.94rem; }

/* Forms */
.form { display: grid; gap: 20px; max-width: 580px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 1px solid #A99B7E; border-radius: 4px; background: var(--linen);
}
.field input[type="file"] { padding: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field textarea { min-height: 140px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.radio-row input { width: auto; accent-color: var(--teal); }
.form-status { padding: 16px 18px; border-radius: 4px; background: var(--linen); border-left: 4px solid var(--teal); }
.form-status[hidden] { display: none; }
.aside-box { background: var(--parchment-light); border: 1px solid var(--rule); border-radius: 4px; padding: 28px; }
.aside-box dl { margin: 0; }
.aside-box dt { font-weight: 600; margin-top: 16px; }
.aside-box dt:first-child { margin-top: 0; }
.aside-box dd { margin: 4px 0 0; color: var(--muted); }

/* Q&A frame */
.frame-box { border: 5px double var(--ink); border-radius: 6px; background: var(--parchment-light); padding: 10px; box-shadow: 6px 6px 0 var(--mustard); }
.embed-frame { display: block; width: 100%; height: min(78vh, 820px); min-height: 520px; border: 1px solid #C9B993; border-radius: 3px; background: var(--linen); }

/* Footer */
.site-footer { border-top: 5px double var(--mustard); background: var(--ink); color: var(--on-ink); padding: 56px 0; font-size: 0.94rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-name { margin: 0 0 8px; font-family: var(--script); font-size: 40px; line-height: 1.1; color: var(--parchment); transform: rotate(-3deg); transform-origin: left center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: #fff; }
.demo-note { font-size: 0.86rem; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
