/* Noble Rogue Publishing — classic literary: parchment, marble, slate ink */

:root {
  --parchment: #eee4cc;
  --parchment-deep: #e2d4b4;
  --parchment-light: #f6efdd;
  --marble: #f6f2ea;
  --ink: #232b33;
  --slate: #374650;          /* sampled from the logo */
  --slate-deep: #2a363f;
  --brass: #7b5e22;          /* text-safe on parchment */
  --brass-line: #a98a47;     /* rules and frames */
  --measure: 38rem;
  --wrap: 72rem;
  --header-h: 4.25rem;
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --display-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --body: "Crimson Pro", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--parchment);
  /* paper grain + gentle aged edges */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .12  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 50% 30%, rgba(255,250,235,.55), rgba(255,250,235,0) 60%);
  background-attachment: scroll;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--slate); color: var(--marble); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--slate-deep); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section__head { max-width: var(--measure); margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.3rem; font-style: italic; color: #3d4852; }

/* ornamental double rule */
.rule { border: 0; height: 7px; margin: 0; border-top: 1px solid var(--brass-line); border-bottom: 1px solid var(--brass-line); opacity: .8; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 228, 204, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brass-line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--slate-deep); font-family: var(--display-sc); font-size: 1.25rem; letter-spacing: .04em; }
.brand img { width: 2.4rem; height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-size: 1.08rem; padding: .25rem 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--brass-line); color: var(--slate-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--slate); color: var(--slate); font: inherit; padding: .35rem .8rem; border-radius: 2px; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--parchment); border-bottom: 1px solid var(--brass-line); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(169,138,71,.35); }
  .nav .btn { margin-top: 1rem; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  padding: .7em 1.5em; border: 1px solid var(--slate); background: var(--slate); color: var(--marble);
  border-radius: 2px; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--slate-deep); color: #fff; border-color: var(--slate-deep); }
.btn--ghost { background: transparent; color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--marble); }
.btn--small { padding: .5em 1.1em; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--soon { background: transparent; color: #6d6a5e; border: 1px dashed #8a846f; cursor: default; font-weight: 500; font-style: italic; }
.btn--soon:hover { background: transparent; color: #6d6a5e; border-color: #8a846f; }

/* ---------- title page (hero) ---------- */
.title-page { padding: clamp(.75rem, 2vw, 1.5rem); }
.title-page__frame { border: 1px solid var(--brass-line); padding: 6px; }
.title-page__plate {
  position: relative; border: 1px solid var(--brass-line);
  background: var(--marble) url("../img/marble.jpg") center / cover no-repeat;
  display: grid; place-items: center; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  min-height: min(82vh, 52rem);
}
.title-page__logo { width: clamp(11rem, 26vw, 17.5rem); margin: 0 auto 1.5rem; }
.title-page__motto { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--brass); margin: 0 0 1.25rem; letter-spacing: .06em; }
.title-page__statement { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.25; color: var(--slate-deep); max-width: 30ch; margin: 0 auto 2rem; text-wrap: balance; }
.title-page .btn-row { justify-content: center; }
.title-page__logo, .title-page__motto { animation: impress 1.3s cubic-bezier(.2,.7,.2,1) both; }
.title-page__motto { animation-delay: .35s; }
@keyframes impress { from { opacity: 0; filter: blur(5px); transform: scale(1.03); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .title-page__logo, .title-page__motto { animation: none; } }

/* ---------- flagship rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 3rem; align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 5.5rem); }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__text { order: -1; }
.feature__by { font-style: italic; color: var(--brass); margin-bottom: 1rem; font-size: 1.15rem; }
.mat { border: 1px solid var(--brass-line); padding: 8px; background: var(--parchment-light); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
.mat img { width: 100%; }
@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .feature--flip .feature__text { order: 0; }
}

/* ---------- epigraph ---------- */
.epigraph { background: var(--parchment-deep); border-block: 1px solid var(--brass-line); padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.epigraph blockquote { margin: 0 auto; max-width: 40rem; font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.45; color: var(--slate-deep); }
.epigraph figcaption { margin-top: 1.25rem; font-size: 1.05rem; color: var(--brass); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem 5rem; align-items: start; }
.about__story { max-width: var(--measure); }
.dropcap::first-letter { float: left; font-family: var(--display); font-size: 4.6em; line-height: .78; padding: .06em .1em 0 0; color: var(--slate); }
.plate { background: var(--marble) url("../img/marble.jpg") 30% 40% / cover; border: 1px solid var(--brass-line); outline: 1px solid var(--brass-line); outline-offset: 5px; padding: 2rem; aspect-ratio: 1; display: grid; place-items: center; margin: 6px; }
.plate img { width: 62%; }
.virtues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.virtue { border-top: 3px double var(--brass-line); padding-top: 1.1rem; }
.virtue h3 { margin-bottom: .1em; }
.virtue__gloss { font-style: italic; color: var(--brass); margin-bottom: .6rem; }
.virtue p:last-child { margin-bottom: 0; font-size: 1.08rem; }
.symbol-copy { max-width: var(--measure); margin-top: 2.5rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__plate { max-width: 20rem; }
  .virtues { grid-template-columns: 1fr; }
}

/* ---------- authors ---------- */
.creatives { background: var(--parchment-deep); border-block: 1px solid var(--brass-line); }
.creatives__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; }
.creative { text-align: center; }
.creative__photo { width: min(100%, 13.5rem); aspect-ratio: 1; margin: 0 auto 1rem; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--brass-line); outline: 1px solid var(--brass-line); outline-offset: 5px; filter: sepia(.12) saturate(.92); }
.creative__name { font-family: var(--display); font-size: 1.5rem; color: var(--slate-deep); margin: 0; }
.creative__role { font-style: italic; color: var(--brass); margin: 0; font-size: 1.1rem; }
@media (max-width: 560px) {
  .creatives__grid { gap: 2rem 1rem; }
  .creative__name { font-size: 1.1rem; }
  .creative__role { font-size: .95rem; line-height: 1.3; }
  .creative__photo { outline-offset: 3px; }
}

/* ---------- submit ---------- */
.submit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 4rem; align-items: start; }
.checklist { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.checklist li { margin-bottom: .35rem; padding-left: .3rem; }
.checklist li::marker { color: var(--brass-line); }
.form-panel { border: 1px solid var(--brass-line); outline: 1px solid var(--brass-line); outline-offset: 5px; margin: 6px; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--parchment-light); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: 1.05rem; }
.field .hint { font-weight: 400; font-style: italic; color: #5b574b; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fffdf6; border: 1px solid #a89b78; border-radius: 2px; padding: .6rem .75rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-weight: 600; }
.form-status[data-state="ok"] { color: #2f5d3a; }
.form-status[data-state="error"] { color: #8a2d2d; }
.fine { font-size: 1rem; color: #4f4b40; }
@media (max-width: 900px) {
  .submit { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--slate-deep); color: #e9e1cc; padding-block: 3rem 2rem; }
.site-footer a { color: #e9e1cc; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; }
.site-footer__brand img { width: 3.4rem; filter: brightness(0) invert(.9) sepia(.2); }
.site-footer__motto { font-family: var(--display); font-style: italic; font-size: 1.25rem; margin: 0; letter-spacing: .05em; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__legal { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(233,225,204,.25); font-size: .98rem; color: #c9c0a8; }

/* ---------- shop ---------- */
.page-head { padding: clamp(.75rem, 2vw, 1.5rem); }
.page-head__plate { border: 1px solid var(--brass-line); outline: 1px solid var(--brass-line); outline-offset: -7px; background: var(--marble) url("../img/marble.jpg") 70% 30% / cover; text-align: center; padding: clamp(2.25rem, 5vw, 3.75rem) 1.5rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: .2em; }
.page-head p { max-width: 36rem; margin: 0 auto; font-style: italic; font-size: 1.25rem; color: #3d4852; }

.work { border: 1px solid var(--brass-line); outline: 1px solid var(--brass-line); outline-offset: 6px; margin: 8px; background: var(--parchment-light); }
.work + .work { margin-top: clamp(3rem, 6vw, 4.5rem); }
.work__banner { border-bottom: 1px solid var(--brass-line); }
.work__banner img { width: 100%; height: auto; }
.work__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; padding: clamp(1.5rem, 4vw, 3rem); }
.work__title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: .1em; }
.work__title-img { width: min(100%, 16rem); margin-bottom: .75rem; }
.work__by { font-style: italic; color: var(--brass); font-size: 1.2rem; margin-bottom: 1.1rem; }
.testimonial { margin: 1.75rem 0 0; padding: 1.1rem 0 0 0; border-top: 3px double var(--brass-line); }
.testimonial p { font-style: italic; font-size: 1.08rem; line-height: 1.55; }
.testimonial footer { font-size: 1rem; color: var(--brass); }
.format { display: grid; grid-template-columns: 10rem 1fr; gap: 1.25rem; align-items: center; padding-block: 1.25rem; border-top: 1px solid rgba(169,138,71,.5); }
.format:first-child { border-top: 0; padding-top: 0; }
.format img { width: 100%; }
.format h3 { font-size: 1.5rem; margin-bottom: .1em; }
.format__price { font-size: 1.2rem; margin-bottom: .7rem; }
.format__price strong { font-weight: 600; }
.map-figure { margin: 1.5rem 0 0; }
.map-figure img { width: 100%; border: 1px solid var(--brass-line); padding: 6px; background: var(--parchment); }
.map-figure figcaption { font-size: .98rem; font-style: italic; color: #5b574b; margin-top: .5rem; }
@media (max-width: 900px) {
  .work__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .format { grid-template-columns: 6.5rem 1fr; gap: 1rem; } }

.catalog { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.25rem; }
.title-card__img { border: 1px solid var(--brass-line); padding: 6px; background: var(--parchment-light); margin-bottom: 1rem; }
.title-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.title-card h3 { font-size: 1.45rem; margin-bottom: .15em; }
.title-card__by { font-style: italic; color: var(--brass); font-size: 1.08rem; margin-bottom: .9rem; }
@media (max-width: 900px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog { grid-template-columns: 1fr; } }
