/* Living in Amaroo — site styles
   Brand: brand/BRAND.md. Two faces, two grounds, one reagent (ember, once per page). */

@font-face { font-family: "Crimson Pro"; src: url("fonts/CrimsonPro-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/CrimsonPro-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ground: #0E0D0C;
  --ground-2: #171512;
  --bone: #E7DECE;
  --bone-soft: rgba(231, 222, 206, 0.74);
  --bone-dim: rgba(203, 193, 177, 0.30);
  --ink: rgba(203, 193, 177, 0.58);
  --hair: rgba(203, 193, 177, 0.17);
  --ember: #C66E3E;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 6vw, 96px);
  --measure: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* the two atmospheric layers: raking light from upper left, and a vignette */
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before { background: radial-gradient(135% 85% at 22% 4%, rgba(214,178,132,0.10) 0%, rgba(160,124,84,0.04) 34%, rgba(0,0,0,0) 64%); }
body::after  { background: radial-gradient(90% 75% at 50% 45%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.45) 100%); }
.wrap { position: relative; z-index: 1; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--bone-dim); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--bone); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
em, i { font-style: italic; }
::selection { background: var(--bone); color: var(--ground); }

/* annotation: the apparatus. Labels, never ideas. */
.mono, .label {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink);
}
.label { display: block; }

.hairline { border: 0; border-top: 1px solid var(--hair); }

/* plate header and footer */
.plate-head, .plate-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 28px 0 22px;
}
.plate-head { border-bottom: 1px solid var(--hair); }
.plate-head a, .plate-foot a { text-decoration: none; }
.plate-head nav { display: flex; gap: 22px; flex-wrap: wrap; }
.plate-head nav a:hover, .plate-foot a:hover { color: var(--bone); }
.brandname { color: var(--bone-soft); }
.plate-foot { border-top: 1px solid var(--hair); margin-top: 120px; padding: 22px 0 40px; }

/* display type */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.012em; }
.display { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.12; }
.display-2 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.16; }
h3 { font-size: 1.6rem; line-height: 1.25; }
.lede { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--bone-soft); max-width: 34em; }
p + p { margin-top: 0.9em; }
.prose { max-width: 36em; }
.prose p { color: var(--bone-soft); }

/* the field */
.field { width: 100%; height: auto; display: block; overflow: visible; }
.field .s { stroke: var(--bone-dim); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.field .t { stroke: rgba(203,193,177,0.46); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.field .base { stroke: rgba(203,193,177,0.34); stroke-width: 1; vector-effect: non-scaling-stroke; }
.field .a { stroke: var(--ember); stroke-width: 1.7; fill: none; vector-effect: non-scaling-stroke; }

/* sections */
.band { padding: clamp(64px, 10vw, 128px) 0 0; }
.band-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); padding-bottom: 12px; margin-bottom: 40px; }

.hero { padding-top: clamp(48px, 9vw, 120px); }
.hero .field { margin: 0 0 clamp(48px, 7vw, 88px); }
.hero .display { max-width: 11em; }
.hero .lede { margin-top: 24px; }
.hero .label { margin-top: 36px; }

/* two-column specimen layout */
.specimen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.specimen figure img { border: 1px solid var(--hair); }
.specimen figcaption { margin-top: 12px; }
.specimen .text > * + * { margin-top: 22px; }
@media (max-width: 760px) {
  .specimen { grid-template-columns: 1fr; }
  /* on phones, show the title, price and Buy button before the cover picture */
  .product-hero figure { order: 2; }
}

.price { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.12em; color: var(--bone); }
.price s { color: var(--ink); }

/* buttons: square, no shadow, no glow */
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 16px 26px; border: 1px solid var(--bone); color: var(--ground); background: var(--bone);
  cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--bone); }
.btn.quiet { background: transparent; color: var(--bone); border-color: var(--bone-dim); }
.btn.quiet:hover { border-color: var(--bone); }
/* the one ember on the product page */
.btn.ember { background: var(--ember); border-color: var(--ember); color: #160B05; }
.btn.ember:hover { background: transparent; color: var(--bone); }

/* indexed list: index number in mono, line in serif */
.index { list-style: none; border-top: 1px solid var(--hair); }
.index li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); color: var(--bone-soft); }
.index li > span:first-child { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--ink); padding-top: 0.35em; }
.index b { font-weight: 400; color: var(--bone); }

/* gallery of plates */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.plates a { text-decoration: none; display: block; }
.plates img { border: 1px solid var(--hair); transition: border-color .15s; aspect-ratio: 1270 / 1797; width: 100%; object-fit: cover; }
.plates a:hover img { border-color: var(--bone-dim); }
.plates figcaption { margin-top: 10px; }

/* sign-up */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: end; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }
.signup form { display: flex; flex-wrap: wrap; gap: 12px; }
.signup label { flex-basis: 100%; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1.1rem; color: var(--bone); background: var(--ground-2);
  border: 1px solid var(--bone-dim); border-radius: 0; padding: 13px 14px;
}
.signup input[type="email"]::placeholder { color: rgba(203,193,177,0.42); }
.signup input[type="email"]:focus { outline: none; border-color: var(--bone); }
.form-note { flex-basis: 100%; min-height: 1.6em; }

/* two-column detail lists */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); }
.cols h3 { margin-bottom: 14px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 5; background: var(--bone); color: var(--ground); padding: 8px 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
