/* DS Creative Studio: Content Hub (index + articles). Loaded after ../site.css.
   Reuses the site tokens; no framework, no animation beyond hover. */

/* ---------- shared ---------- */
.hub-page, .article-page {
  padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(72px, 10vw, 120px);
  position: relative; overflow: hidden;
}
.hub-page > .container, .article-page > .container { position: relative; z-index: 1; }

.crumbs { font-size: 0.92rem; color: var(--ink-55); margin-bottom: clamp(22px, 4vw, 36px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper); }
.crumbs a { color: var(--ink-70); text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- hub index ---------- */
.hub-head { max-width: 62ch; margin-bottom: clamp(40px, 7vw, 72px); }
.hub-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
.hub-head .lead { max-width: 56ch; margin-top: 18px; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.hub-card {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 22px);
  align-items: start; align-content: start;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  background: #fdfaf5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: inherit; text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.hub-card:hover, .hub-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.hub-card figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--stone-200); aspect-ratio: 16 / 9; }
.hub-card figure img { width: 100%; height: 100%; object-fit: cover; }
.hub-card .kicker { margin-bottom: 14px; }
.hub-card h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.18; }
.hub-card p { margin-top: 14px; color: var(--ink-70); max-width: 44ch; }
.hub-card .meta { margin-top: 20px; font-size: 0.9rem; color: var(--ink-70); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.hub-card .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracotta-deep); }
.hub-card .more::after { content: "←"; transition: transform 0.25s var(--ease-out); }
.hub-card:hover .more::after { transform: translateX(-4px); }

/* ---------- article ---------- */
.article-col { max-width: 760px; margin-inline: auto; }
.article-head .kicker { margin-bottom: 18px; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
.article-meta { margin-top: 18px; font-size: 0.92rem; color: var(--ink-55); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.article-meta span + span::before { content: "·"; margin-inline-end: 14px; }

.article-hero {
  max-width: 980px; margin: clamp(28px, 4vw, 44px) auto 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--stone-200); box-shadow: var(--shadow-soft); border: 1px solid var(--line);
}
.article-hero img { width: 100%; height: auto; display: block; }

.article-body { margin-top: clamp(36px, 5vw, 56px); }
.article-body p { font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.8; color: var(--ink); margin-top: 18px; }
.article-body p.opening { font-size: clamp(1.15rem, 1.5vw, 1.32rem); color: var(--ink); }
.article-body h2 {
  margin-top: clamp(40px, 6vw, 60px); padding-top: 14px;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2;
  position: relative;
}
.article-body h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--terracotta); }
.article-body ul, .article-body ol { margin-top: 14px; padding: 0; }
.article-body li { position: relative; padding-inline-start: 26px; margin-top: 10px; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.7; list-style: none; }
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; padding-inline-start: 38px; }
.article-body ol li::before { content: counter(item); position: absolute; inset-inline-start: 0; top: 0.2em; width: 26px; height: 26px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 0.85rem; font-weight: 800; display: grid; place-items: center; }
.article-body ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.article-body .pull {
  margin: clamp(26px, 4vw, 40px) 0; padding: 4px 22px;
  border-inline-start: 3px solid var(--terracotta);
}
.article-body .pull p { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; line-height: 1.5; color: var(--ink); }
.article-body .pull p + p { margin-top: 10px; }
.article-body a { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover, .article-body a:focus-visible { color: var(--ink); }

/* closing call to action: a quiet conclusion on a sand surface, not a dark sales block */
.article-cta {
  margin-top: clamp(44px, 7vw, 72px);
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(214, 164, 108, 0.28), transparent 60%),
    linear-gradient(180deg, var(--stone-200), var(--stone-100));
  border: 1px solid var(--line);
  color: var(--ink-70);
}
.article-cta h2 { color: var(--ink); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.article-cta p { margin-top: 10px; max-width: 58ch; line-height: 1.65; }
.article-cta .btn { margin-top: 20px; }

/* related reading: one compact card per real article */
.related { margin-top: clamp(40px, 6vw, 64px); }
.related:empty { display: none; }
.related h2 { font-size: 1.05rem; font-weight: 800; color: var(--ink-55); letter-spacing: 0.02em; margin-bottom: 14px; }
.related-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 12px; border-radius: var(--radius-md);
  background: #fdfaf5; border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}
.related-card:hover, .related-card:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); }
.related-card img { width: 100%; height: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-sm); }
.related-body { display: grid; gap: 4px; }
.related-body strong { font-size: 1.05rem; line-height: 1.25; }
.related-body span { color: var(--ink-70); font-size: 0.92rem; line-height: 1.45; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hub-card { grid-template-columns: 1fr; }
  .hub-card figure { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  /* less vertical UI before the first sentence, calmer reading rhythm */
  .hub-page, .article-page { padding-top: calc(var(--nav-h) + 18px); padding-bottom: 64px; }
  .crumbs { font-size: 0.82rem; margin-bottom: 16px; }
  .crumbs [aria-current="page"] { display: none; }   /* the H1 right below repeats it */
  .article-head .kicker { font-size: 0.85rem; margin-bottom: 12px; }
  .article-head h1 { font-size: 1.95rem; line-height: 1.12; }
  .article-meta { margin-top: 12px; font-size: 0.85rem; }
  .article-hero { margin-top: 22px; border: 0; box-shadow: 0 14px 34px -22px rgba(42, 34, 48, 0.35); border-radius: var(--radius-md); }
  .article-body { margin-top: 28px; }
  .article-body p, .article-body li { font-size: 1.0625rem; line-height: 1.7; }
  .article-body p { margin-top: 14px; }
  .article-body p.opening { font-size: 1.15rem; line-height: 1.6; }
  .article-body h2 { margin-top: 34px; padding-top: 10px; font-size: 1.35rem; }
  .article-body ol li { padding-inline-start: 34px; }
  .article-body ol li::before { width: 22px; height: 22px; font-size: 0.78rem; }
  .article-body .pull { margin: 22px 0; padding: 2px 16px; }
  .article-body .pull p { font-size: 1.08rem; }
  .article-cta { margin-top: 40px; padding: 22px 20px 24px; }
  .article-cta .btn { width: 100%; min-height: 50px; }
  .hub-head { margin-bottom: 32px; }
  .hub-head h1 { font-size: 2rem; }
  .hub-head .lead { margin-top: 12px; font-size: 1.02rem; }
  .hub-card { padding: 12px 12px 18px; gap: 12px; }
  .related-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .related-card img { aspect-ratio: 1 / 1; }
  .hub-card p { margin-top: 10px; }
  .hub-card .meta { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-card, .hub-card .more::after { transition: none; }
}
