/* allcreates.com - The Flame and the Field
   Display: Marcellus (the wordmark face). Text: Arial.
   Each property keeps its own field colour; the furniture is shared. */

@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus.ttf") format("truetype");
  font-display: swap;
}

:root {
  --cobalt: #27608f;
  --cobalt-deep: #1d4a70;
  --gold: #fce460;
  --vermilion: #cd0c00;
  --turquoise: #45bacf;
  --marigold: #fccc84;
  --ice: #f0fcfc;
  --ink: #0b0f14;
  --ink-soft: #3d4650;
  --rule: #d9e2e8;
  --paper: #ffffff;
  --display: "Marcellus", "Times New Roman", serif;
  --text: Arial, Helvetica, sans-serif;
  --measure: 62ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- mantra rail ---------- */
.rail {
  background: var(--cobalt);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-align: center;
  padding: 7px 12px;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cobalt); color: var(--cobalt); }

/* ---------- labels and buttons ---------- */
.label {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 1em;
}
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid var(--cobalt);
  background: var(--cobalt);
  color: #fff;
  border-radius: 2px;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--cobalt); }
.btn--ghost:hover { background: var(--cobalt); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--line { background: transparent; border-color: currentColor; color: inherit; }
.btn--line:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- fields (rooms) ---------- */
.field { padding: 72px 0; }
.field--cobalt { background: var(--cobalt); color: #fff; }
.field--cobalt h1, .field--cobalt h2 { color: var(--gold); }
.field--cobalt a:not(.btn) { color: var(--gold); }
.field--ice { background: var(--ice); }
.field--vermilion { background: var(--vermilion); color: #fff; }
.field--vermilion a:not(.btn) { color: #fff; }
.field--ink { background: var(--ink); color: #fff; }
.field--ink a:not(.btn) { color: var(--gold); }
.field--mama { background: #ffe763; }
.field--rage { background: #cc0c00; color: #fff; }
.field--bigger { background: #45bace; }
.field--rage a:not(.btn) { color: #fff; }

/* ---------- home hero ---------- */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero__cover img { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3); }
.hero h1 em { display: block; font-style: normal; font-size: 0.5em; color: #fff; margin-top: 0.5em; letter-spacing: 0.02em; }
.hero__lede { font-size: 1.25rem; line-height: 1.55; }
.credit { font-size: 0.82rem; opacity: 0.85; margin-top: 1.4em; }

/* ---------- mission ---------- */
.mission { text-align: center; }
.mission p { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; max-width: 26ch; margin: 0 auto; max-width: 30em; }
.mission .label { color: var(--cobalt); }

/* ---------- catalog grid ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head a { font-family: var(--display); letter-spacing: 0.06em; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.shelf a { text-decoration: none; color: var(--ink); display: block; }
.shelf__room { padding: 26px 26px; display: flex; justify-content: center; }
.shelf__room img { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); width: 100%; max-width: 190px; }
.shelf h3 { margin: 16px 0 2px; font-size: 1.2rem; }
.shelf p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.shelf a:hover h3 { color: var(--cobalt); text-decoration: underline; }

/* ---------- plates ---------- */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.plates figure { margin: 0; }
.plates img { border: 1px solid var(--rule); }
.plates figcaption { font-family: var(--display); font-size: 1.1rem; line-height: 1.45; margin-top: 14px; }
.plates figcaption span { display: block; font-family: var(--text); font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- two-up tenants ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo > div { padding: 64px clamp(24px, 5vw, 72px); }
.duo h2 { color: inherit; }
.duo .label { opacity: 0.9; }

/* ---------- book page ---------- */
.book .wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; align-items: start; }
.book__cover img { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.book__cover a { display: inline-block; margin-top: 16px; font-size: 0.85rem; }
.book h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.book .sub { font-family: var(--display); font-size: 1.35rem; margin: -0.3em 0 0.8em; }
.byline { font-size: 1rem; margin-bottom: 1.4em; }
.price { font-family: var(--display); font-size: 1.6rem; margin: 0; }
.price small { font-family: var(--text); font-size: 0.85rem; opacity: 0.85; }

.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 64px; }
.spec { border-top: 3px solid var(--ink); margin: 0; padding: 0; font-size: 0.95rem; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--display); letter-spacing: 0.08em; color: var(--ink-soft); }
.spec dd { margin: 0; text-align: right; }
.care { border-left: 4px solid var(--turquoise); background: var(--ice); padding: 20px 24px; margin: 1.6em 0; }
.care p:last-child { margin-bottom: 0; }

/* ---------- prose pages ---------- */
.page-head { padding: 64px 0 40px; }
.page-head p { font-size: 1.2rem; }
.prose { padding: 0 0 72px; }
.prose h2 { margin-top: 1.6em; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; list-style: none; padding: 0; margin: 1.5em 0; }
.values li { border-top: 3px solid var(--cobalt); padding-top: 12px; }
.values strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; display: block; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.people h3 span { display: block; font-family: var(--text); font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.02em; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5em 0; }
table.list th { font-family: var(--display); font-weight: 400; letter-spacing: 0.08em; text-align: left; border-bottom: 3px solid var(--ink); padding: 10px 12px 10px 0; }
table.list td { border-bottom: 1px solid var(--rule); padding: 12px 12px 12px 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cfd6dc; padding: 56px 0 28px; font-size: 0.92rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-brand img { height: 84px; width: auto; margin-bottom: 16px; }
.legal { border-top: 1px solid #2a323b; margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: #98a3ad; }
.legal p { max-width: none; margin-bottom: 0.4em; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .book .wrap, .body-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__cover, .book__cover { max-width: 260px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates, .duo, .people, .values { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .field { padding: 48px 0; }
  .wrap { padding: 0 16px; }
  .rail { letter-spacing: 0.18em; font-size: 0.62rem; }
}
