/* NELLEA Journal: a fashion-magazine layer on top of styles.css.
   Same paper, ink and rose as the site; a high-contrast display serif from
   the visitor's own device (Didot / Bodoni on Apple), no font downloads. */
:root {
  --display: Didot, "Bodoni 72", "Bodoni Moda", "Libre Bodoni", Iowan Old Style, Baskerville, "Times New Roman", serif;
  --blush: #ecd3d9;
  --cover-blush: #ecd3d9;
  --cover-wine: #5b2636;
  --cover-sand: #e8dccd;
  --cover-sage: #cbd2c2;
  --cover-ink: #2a2426;
  --cover-rose: #ae6378;
  --cover-camel: #cfac88;
  --cover-mist: #dfe1e5;
  --cover-plum: #6d3b52;
  --cover-cream: #f3ece2;
  --cover-navy: #2b3448;
}

.journal-page .site-header nav a[aria-current="page"] { color: var(--rose); }
.journal-page main { padding: 0 clamp(1rem, 4vw, 3rem); }
.kicker {
  margin: 0;
  color: var(--rose);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Journal home ---------- */
.journal-home { max-width: 1240px; margin: 0 auto; }
.masthead { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; border-bottom: 1px solid var(--line); }
.masthead h1 {
  margin: .9rem 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(3.6rem, 12vw, 9.5rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.02em;
}
.masthead-lede { max-width: 34rem; margin: 0 auto; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }

.featured { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.story-card.story-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.story-featured .cover { aspect-ratio: 5 / 4; }
.story-featured .cover-title { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.story-card.story-featured h3 { position: static; width: auto; height: auto; margin: .6rem 0; overflow: visible; clip: auto; white-space: normal; font-size: clamp(2rem, 4vw, 3.2rem); }
.story-featured .story-text p:last-child { font-size: 1.1rem; }
@media (max-width: 760px) { .story-card.story-featured { grid-template-columns: 1fr; } }

.filters { position: sticky; top: 0; z-index: 10; padding: .9rem 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 .88rem/1 var(--sans);
  cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips button:focus-visible, .story-card:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.stories { padding: clamp(2rem, 4vw, 3rem) 0; }
.stories-empty { color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 980px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }

.story-card { display: flex; flex-direction: column; gap: 1rem; color: inherit; text-decoration: none; }
.story-card h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-family: var(--display); font-size: 1.55rem; font-weight: 400; line-height: 1.15; text-wrap: balance; }
.story-card .story-text p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.story-card:hover .cover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card .story-text p:last-child { margin-top: .5rem; }
.story-card:hover .story-text p:last-child { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .story-card:hover .cover { transform: none; } }

/* Covers: a colour field with the story's title set like a magazine cover. */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  overflow: hidden;
  border-radius: 4px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.cover::after {
  position: absolute;
  right: -18%;
  bottom: -22%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .22;
}
.cover-section { font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.cover-title { position: relative; z-index: 1; max-width: 13ch; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.02; text-wrap: balance; }
.cover-light { color: var(--ink); }
.cover-dark { color: var(--paper); }
.cover-blush { background: linear-gradient(160deg, var(--cover-blush), #f6e7ea); }
.cover-wine { background: linear-gradient(160deg, var(--cover-wine), #3d1824); }
.cover-sand { background: linear-gradient(160deg, var(--cover-sand), #f2ebe2); }
.cover-sage { background: linear-gradient(160deg, var(--cover-sage), #e3e7dd); }
.cover-ink { background: linear-gradient(160deg, #3a3234, var(--cover-ink)); }
.cover-rose { background: linear-gradient(160deg, var(--cover-rose), #8f4c60); }
.cover-camel { background: linear-gradient(160deg, var(--cover-camel), #e3cdb4); }
.cover-mist { background: linear-gradient(160deg, var(--cover-mist), #f0f1f3); }
.cover-plum { background: linear-gradient(160deg, var(--cover-plum), #4d2739); }
.cover-cream { background: linear-gradient(160deg, var(--cover-cream), #fbf7f1); }
.cover-navy { background: linear-gradient(160deg, var(--cover-navy), #1b2131); }

.letter {
  margin: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 6rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 4px;
  background: var(--wine);
  color: var(--paper);
  text-align: center;
}
.letter .kicker { color: var(--rose-light); }
.letter h2 { max-width: 30ch; margin: 1rem auto; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 400; line-height: 1.15; text-wrap: balance; }
.letter p:last-child { margin: 0; opacity: .75; }

/* ---------- Article ---------- */
.article { max-width: none; }
.article-hero {
  aspect-ratio: auto;
  min-height: clamp(22rem, 52vw, 34rem);
  justify-content: flex-end;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 3rem));
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  border-radius: 0;
}
.article-hero::after { right: -6%; bottom: -40%; width: 46%; }
.article-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; width: 100%; }
.article-hero .kicker { color: inherit; opacity: .8; }
.article-hero h1 { margin: 1rem 0 1.2rem; font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 400; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.dek { max-width: 40rem; margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; opacity: .85; }
.byline { margin: 1.6rem 0 0; font-size: .85rem; opacity: .7; }

.disclosure { max-width: 680px; margin: 1rem auto 0; padding: .8rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--muted); font-size: .85rem; line-height: 1.55; }
.article-body { max-width: 680px; margin: 0 auto; padding: 2.5rem 0 1rem; font-size: 1.08rem; line-height: 1.8; }
.article-body .lede { font-size: 1.25rem; line-height: 1.7; }
.article-body .lede::first-letter { float: left; padding: .08em .12em 0 0; color: var(--rose); font-family: var(--display); font-size: 4.6em; line-height: .78; }
.article-body h2 { margin: 2.6rem 0 .8rem; font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 400; line-height: 1.15; text-wrap: balance; }
.article-body ul, .article-body ol { padding-left: 1.2rem; }
.article-body li { margin: .5rem 0; }
.article-body li::marker { color: var(--rose); }
.article-body a { color: var(--wine); text-decoration-color: var(--rose-light); text-underline-offset: 3px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.article-body .table-wrap { overflow-x: auto; }
.article-body blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--rose); font-family: var(--display); font-size: 1.6rem; line-height: 1.3; }

.app-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
}
.app-cta .kicker { color: var(--rose-light); }
.app-cta h2 { margin: .7rem 0; font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 400; line-height: 1.1; }
.app-cta p { margin: 0; opacity: .78; }
.app-cta ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.app-cta li::before { color: var(--rose-light); content: "✦  "; }
@media (max-width: 760px) { .app-cta { grid-template-columns: 1fr; } }

.related { max-width: 1240px; margin: 0 auto; padding: 1rem 0 clamp(4rem, 8vw, 6rem); }
.related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-head h2 { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 400; }
/* The featured story's headline sits beside its cover, so the cover keeps only the section. */
@media (min-width: 761px) { .story-card.story-featured .cover-title { visibility: hidden; } }
@media (max-width: 760px) {
  .story-card.story-featured h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Shop the look ---------- */
.shop-look {
  width: min(1040px, calc(100vw - 2 * clamp(1rem, 4vw, 3rem)));
  margin: 2.6rem 0 2.6rem 50%;
  padding: clamp(1.2rem, 3vw, 2rem);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}
.shop-look-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.shop-look-head h3 { margin: .4rem 0 0; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.shop-look-total { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.shop-look-total small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.shop-look-total strong { font-size: 1.35rem; font-weight: 600; }
.shop-look-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.shop-look-tiles li { margin: 0; }
.shop-look-tiles li::marker { content: none; }
.shop-look-tiles a { display: flex; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none; }
.shop-look-photo { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--paper-deep); }
.shop-look-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.shop-look-tiles a:hover img { transform: scale(1.04); }
.shop-look-slot { position: absolute; top: .5rem; left: .5rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(32, 28, 29, .7); color: #fff; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.shop-look-brand { margin-top: .35rem; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.shop-look-name { font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-look-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.shop-look-why { margin: 1.3rem 0 0; padding: .9rem 1.1rem; border-radius: 3px; background: var(--blush); font-size: .98rem; }
.shop-look-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.shop-look-foot p { margin: 0; color: var(--muted); font-size: .8rem; }
.article-body .shop-look-app { display: inline-block; padding: .8rem 1.2rem; border-radius: 999px; background: var(--rose); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; }
.shop-look-status { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .shop-look-tiles a:hover img { transform: none; } }

/* "In short": the direct answer under the headline (quoted by search and AI assistants). */
.answer {
  max-width: 680px;
  margin: 2.4rem auto 0;
  padding: 1.4rem 1.6rem 1.5rem;
  border: 1px solid rgba(174, 99, 120, .14);
  border-radius: 22px;
  background: linear-gradient(160deg, #fdf8f9, #fbf1f3);
  box-shadow: 0 14px 40px rgba(70, 42, 51, .06);
}
.answer .kicker { display: flex; align-items: center; gap: .5rem; color: var(--rose); }
.answer .kicker::before { content: "✦"; font-size: .9rem; letter-spacing: 0; }
.answer p:last-child { margin: .6rem 0 0; color: #3a3033; font-size: 1.06rem; line-height: 1.7; }

/* ---------- Cover drawings (motif: in each article) ---------- */
.cover-icy { background: linear-gradient(165deg, #dfeaf3, #f4f8fb); color: #22364a; --stroke: #5e86a8; }
.cover-camel { background: linear-gradient(165deg, #d9b48f, #ecd6bf); color: #3d2617; --stroke: #8a4f26; }
.cover-mist { background: linear-gradient(165deg, #dfe1e5, #f1f2f4); color: #22262d; --stroke: #5a6270; }
.cover-wine { background: linear-gradient(165deg, #5b2636, #3d1824); color: #f8f4f2; --stroke: #e3b7c3; }
.cover-blush { background: linear-gradient(165deg, #ecd3d9, #f7e9ec); color: #3f1d29; --stroke: #ae6378; }
.cover-sage { background: linear-gradient(165deg, #cbd2c2, #e5e9df); color: #263022; --stroke: #5f7356; }
.cover-navy { background: linear-gradient(165deg, #2b3448, #1b2131); color: #eef1f6; --stroke: #9fb0cc; }
.cover-plum { background: linear-gradient(165deg, #6d3b52, #4d2739); color: #f8eef2; --stroke: #e0b3c6; }
.cover-aqua { background: linear-gradient(165deg, #cfe9e6, #f0f8f6); color: #173a38; --stroke: #3f8f88; }
.cover-cream { background: linear-gradient(165deg, #f3ece2, #fbf7f1); color: #2a2320; --stroke: #a07d5c; }
.cover-ivory { background: linear-gradient(165deg, #f3e6e1, #fbf5f2); color: #3a2228; --stroke: #b88a7a; }
.cover.has-motif::after { content: none; }
.cover .motif { position: absolute; top: 9%; right: -4%; width: 74%; height: auto; opacity: .7; pointer-events: none; }
.cover .motif * { fill: none; stroke: var(--stroke, currentColor); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cover .motif .dot { fill: var(--stroke, currentColor); stroke: none; opacity: .5; }
.cover-section, .cover-title { position: relative; z-index: 1; }
/* On the article page the drawing sits large on the right of the cover. */
.article-hero .motif { top: auto; bottom: -14%; right: -3%; width: min(36%, 420px); opacity: .5; }
@media (max-width: 760px) { .article-hero .motif { width: 70%; right: -12%; opacity: .35; } }
/* The featured card's cover keeps its drawing; its title shows beside it on wide screens. */

/* Author box at the end of each article, and quotes in the author's voice. */
.author { display: flex; gap: 1rem; align-items: flex-start; max-width: 680px; margin: 2.5rem auto 0; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.author-mark { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blush); color: var(--wine); font-family: var(--display); font-size: 1.3rem; }
.author p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.author strong { color: var(--ink); }
.article-body .note { margin: 1.8rem 0; padding: 1.2rem 1.4rem; border-radius: 18px; background: linear-gradient(160deg, #fdf8f9, #fbf1f3); font-family: var(--display); font-size: 1.35rem; line-height: 1.4; }
.article-body .note cite { display: block; margin-top: .6rem; font-family: var(--sans); font-size: .8rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.byline a { color: inherit; text-underline-offset: 3px; }
.author a { color: var(--wine); white-space: nowrap; }

/* Valentina's portrait: a photo when assets/valentina.* exists, otherwise a monogram. */
.portrait { flex: none; display: block; border-radius: 50%; object-fit: cover; }
.portrait-small { width: 3rem; height: 3rem; }
.portrait-large { width: clamp(7.5rem, 16vw, 11rem); height: clamp(7.5rem, 16vw, 11rem); border: 4px solid rgba(255, 253, 252, .85); box-shadow: 0 18px 50px rgba(70, 42, 51, .18); }
.portrait-empty { display: grid; place-items: center; background: var(--blush); color: var(--wine); font-family: var(--display); }
.portrait-small.portrait-empty { font-size: 1.4rem; }
.portrait-large.portrait-empty { background: linear-gradient(160deg, #fdf8f9, #f3dfe5); font-size: clamp(3rem, 7vw, 4.6rem); }
.author-hero { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.5rem); }
@media (max-width: 600px) { .author-hero { flex-direction: column; align-items: flex-start; } }
