/* Stories: three long-form pieces in the home page's type and colour system */
.stories-page { --ink: #655644; --ink-soft: #7a6b58; --rule: #e6e1d8; color: var(--ink); font-family: Geist, "Helvetica Neue", Helvetica, Arial, sans-serif; }

.story-piece { position: relative; isolation: isolate; padding: 0 0 clamp(80px, 9vw, 140px); }
.story-piece + .story-piece { border-top: 1px solid var(--rule); }

/* Header band: a soft, frosted morning wash behind the title */
.story-head {
  position: relative; overflow: hidden;
  padding: clamp(150px, 15vw, 210px) 6vw clamp(56px, 6vw, 84px);
  background:
    radial-gradient(60% 120% at 78% 30%, rgb(255 252 246 / 90%), transparent 70%),
    radial-gradient(70% 140% at 20% 80%, rgb(236 230 220 / 70%), transparent 70%),
    linear-gradient(180deg, #f6f3ee, #fbfaf7);
  border-bottom: 1px solid var(--rule);
}
.story-head h1 {
  margin: 0; font-weight: 200; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.15;
  transform: scaleX(1.11); transform-origin: 0 50%;
}
.story-head .kicker {
  display: flex; align-items: center; gap: .9em; margin: 14px 0 0;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  color: #75664F;
  background: linear-gradient(100deg, #685944 0%, #7C6B53 28%, #93815F 46%, #76664F 62%, #685944 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.story-head .kicker .antik-emblem { font-size: 34px; height: .72em; color: #655644; -webkit-text-fill-color: initial; }
.story-head .kicker .lv { font-family: "Times New Roman", serif; letter-spacing: .1em; font-size: 15px; }
.story-head .tm { font-size: 9px; vertical-align: super; margin-left: -.6em; }

/* Body: a time / label column beside the text */
.story-body { max-width: 1040px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 6vw 0; }
.entry { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: clamp(20px, 4vw, 64px); padding: 18px 0; }
.entry time, .entry .mark {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: .35em;
  color: #75664F;
  background: linear-gradient(100deg, #685944 0%, #7C6B53 28%, #93815F 46%, #76664F 62%, #685944 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.entry p { margin: 0 0 1.1em; font-size: 16px; line-height: 1.62; font-weight: 348; color: var(--ink); max-width: 64ch; }
.entry p:last-child { margin-bottom: 0; }
.entry .antik-word { font-size: .95em; }

/* Byline: the wordmark's serif, small and letter-spaced, under a hairline */
.byline {
  max-width: 1040px; margin: clamp(44px, 5vw, 72px) auto 0; padding: 22px 6vw 0;
  text-align: right; font-family: "Times New Roman", serif; font-size: 14px; letter-spacing: .16em;
  color: var(--ink);
}
.byline::before { content: ""; display: block; height: 1px; background: var(--rule); margin-bottom: 22px; }

/* Faint marks behind the origin pieces */
.story-piece .mark-art { position: absolute; z-index: -1; pointer-events: none; opacity: .5; }
.story-piece .mark-art.star { right: 7vw; top: clamp(220px, 22vw, 300px); width: clamp(70px, 7vw, 110px); }
.story-piece .mark-art.emblem { left: 4vw; bottom: 26%; width: clamp(160px, 18vw, 260px); height: auto; color: #655644; opacity: .12; }
/* the home page centres <main> text and tightens <p>; Stories reads left-aligned */
.stories-page, .stories-page h1, .stories-page p { text-align: left; }
.stories-page p { letter-spacing: normal; }
.stories-page .byline { text-align: right; }
.story-head h1 { white-space: normal; }
/* Header film: the stormy sea from the original Stories page, softened behind a frosted wash */
.story-head { isolation: isolate; }
.story-head .head-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; filter: grayscale(.35) contrast(.85); }
.story-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 120% at 78% 30%, rgb(255 252 246 / 70%), transparent 70%),
    linear-gradient(180deg, rgb(248 245 240 / 72%), rgb(251 250 247 / 86%));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
/* Antikythera mechanism, faint, beside the Origins of ANTIK text */
.story-piece .mark-art.gear { left: 1.5vw; top: 46%; width: clamp(150px, 15vw, 240px); opacity: .55; }
@media (prefers-reduced-motion: reduce) { .story-head .head-film { display: none; } }
/* Compact headers: just clear of the nav on the first story, tight on the others */
.story-head { padding: 40px 6vw 30px; }
.story-piece:first-child .story-head { padding-top: 112px; }
.story-body { padding-top: clamp(28px, 3vw, 44px); }
/* Whiter headers */
.story-head { background: linear-gradient(180deg, #fdfcfa, #ffffff); }
.story-head::before {
  background:
    radial-gradient(60% 120% at 78% 30%, rgb(255 255 255 / 80%), transparent 70%),
    linear-gradient(180deg, rgb(253 252 250 / 84%), rgb(255 255 255 / 92%));
}
/* Headers: near pure white; the sea film on Origins of ANTIK only whispers through */
.story-head { background: #fff; }
.story-head::before { background: rgb(255 255 255 / 93%); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Everyday Elegance: title 11% smaller, "A Morning with ANTIK" 11% larger */
#morning-title { font-size: clamp(20.1px, 2.32vw, 31px); }
#morning-title + .kicker { font-size: 13.3px; }
#morning-title + .kicker .antik-emblem { font-size: 26.2px; }
/* LUX VITAE star sits in the label column, beneath "Light of life" */
.entry .label-col { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.entry .label-star { width: clamp(54px, 5.4vw, 78px); height: auto; opacity: .5; margin-left: 2px; }
.entry .label-col { width: max-content; align-items: center; align-self: start; }
.entry .label-star { margin-left: 0; }
/* star: centred under the label horizontally, and on the paragraphs' middle vertically */
.entry .label-col { position: relative; align-self: stretch; }
.entry .label-star { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* Origins of LUX VITAE: "Origins of" 23% smaller, "LUX VITAE" 13% larger */
#lv-origins-title { font-size: clamp(20px, 2.31vw, 30.8px); }
#lv-origins-title + .kicker .lv { font-size: 17px; }
/* Origins of LUX VITAE on one line: "ORIGINS OF" another 13% smaller, LUX VITAE to its right */
.story-head:has(#lv-origins-title) { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .55em; }
#lv-origins-title { font-size: clamp(17.4px, 2.01vw, 26.8px); margin-right: .75em; }   /* room for the 11% stretch */
#lv-origins-title + .kicker { margin-top: 0; }
/* LUX VITAE cap height = ORIGINS OF cap height (Geist caps 0.71 em, Times caps 0.662 em -> x1.0723) */
#lv-origins-title + .kicker .lv { font-size: clamp(19.22px, 2.22vw, 29.6px); }
/* Origins of ANTIK: 23% smaller; the ANTIK logo is fitted to the width of "ORIGINS OF" (stories.js) */
#antik-origins-title { font-size: clamp(20px, 2.31vw, 30.8px); }
#antik-origins-title + .kicker .antik-emblem { display: block; height: auto; aspect-ratio: 1227 / 161; }
