/* SAMARSKAYA — glossy 2000s editorial website */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #eae7dc;
  --sand: #d8c3a5;
  --stone: #8e8d8a;
  --coral: #e98074;
  --red: #e85a4f;
  --red-dark: #c8463c;
  --ink: #1a1a1a;
  --ink-soft: #3a3936;
  --paper: #fdfbf7;
  --rule: #ded9cd;

  --f-mast: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --f-head: 'Playfair Display', Georgia, serif;
  --f-cond: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'PT Serif', Georgia, serif;

  --nav-h: 56px;
  --wrap: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px;
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  border-bottom: 3px solid var(--red);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.logo {
  font-family: var(--f-mast); font-weight: 900; font-size: 24px;
  letter-spacing: 3px; text-decoration: none; color: #fff; flex-shrink: 0;
}
.nav {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  flex: 1; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--f-cond); font-size: 14px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none;
  color: var(--cream); padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--red); }
.issue-tag {
  font-family: var(--f-cond); font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--sand); flex-shrink: 0;
}

/* ---------------- Hero: cover + contents ---------------- */
.hero {
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--sand));
  padding: 32px 0 48px;
}
.hero-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start;
}

.cover {
  --h: min(calc(100svh - var(--nav-h) - 64px), 940px);
  height: max(var(--h), 560px);
  aspect-ratio: 819 / 1024;
  position: relative; overflow: hidden;
  container-type: inline-size;
  background: #111;
  box-shadow: 0 30px 70px rgba(60, 45, 30, 0.35), 0 4px 14px rgba(0,0,0,0.2);
}
.cover::after { /* glossy sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.08) 100%);
}
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 38%);
}
.cover-top {
  position: absolute; top: 2.6cqw; left: 0; right: 0; text-align: center; color: #fff;
}
.cover-meta {
  font-family: var(--f-cond); font-size: max(2cqw, 11px); letter-spacing: 0.5cqw;
  text-transform: uppercase; color: var(--cream);
}
.cover-mast {
  font-family: var(--f-mast); font-weight: 900; font-size: 11.2cqw; line-height: 1;
  letter-spacing: 0; text-shadow: 0 0.6cqw 2.4cqw rgba(0,0,0,0.5);
}
.cover-sticker {
  position: absolute; top: 21cqw; right: 4cqw;
  width: 17cqw; height: 17cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a7e 0%, var(--red) 45%, var(--red-dark) 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(12deg); text-align: center;
  box-shadow: 0 1cqw 3cqw rgba(0,0,0,0.4);
  font-family: var(--f-cond); text-transform: uppercase; line-height: 1.05;
}
.cover-sticker b { font-size: 5.2cqw; font-weight: 700; }
.cover-sticker span { font-size: max(2.1cqw, 11px); letter-spacing: 0.2cqw; }

.cl { /* cover line */
  color: #fff; text-decoration: none; display: block;
  text-shadow: 0 0.3cqw 1.6cqw rgba(0,0,0,0.7);
}
.cl:hover .cl-title, .cl:focus-visible .cl-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.8cqw; }
.cl-tag {
  display: inline-block; background: var(--red); color: #fff;
  font-family: var(--f-cond); font-size: max(2.1cqw, 11px); font-weight: 500;
  letter-spacing: 0.25cqw; text-transform: uppercase; padding: 0.3cqw 1cqw; margin-bottom: 0.8cqw;
  text-shadow: none;
}
.cl-tag.light { background: var(--cream); color: var(--ink); }
.cl-title { display: block; font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; font-size: 3.6cqw; line-height: 1.05; }
.cl-sub { display: block; font-family: var(--f-body); font-style: italic; font-size: max(2.4cqw, 12px); line-height: 1.3; color: var(--cream); margin-top: 0.6cqw; }

.cover-lines {
  position: absolute; left: 4cqw; right: 4cqw; top: 30cqw; bottom: 5cqw;
  display: grid; grid-template-columns: 42% 1fr 31%;
}
.cl-col { display: flex; flex-direction: column; gap: 3.2cqw; }
.cl-left { grid-column: 1; justify-content: space-between; }
.cl-right { grid-column: 3; justify-content: flex-end; text-align: right; }
.cl-stack { display: flex; flex-direction: column; gap: 3.2cqw; width: 66%; }
.cl { position: relative; }
.cl-main .cl-title {
  font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: none;
  font-size: 5.4cqw; line-height: 1.04;
}
.cl-main .cl-title em { font-style: normal; color: var(--sand); }
.cl-right .cl-title { font-size: 3.5cqw; }
.cl-num { font-family: var(--f-head); font-weight: 900; font-size: 8cqw; line-height: 0.9; color: var(--red); display: block; }

/* Contents */
.contents { padding-top: 8px; }
.contents-title {
  font-family: var(--f-head); font-weight: 900; font-size: 52px; line-height: 1;
  letter-spacing: -1px; margin-bottom: 4px;
}
.contents-title span { color: var(--red); font-style: italic; }
.contents-dek {
  font-family: var(--f-cond); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 14px; color: var(--ink-soft); border-bottom: 3px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px;
}
.toc { list-style: none; }
.toc a {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid rgba(26,26,26,0.15); text-decoration: none;
}
.toc a:hover .toc-title { color: var(--red); }
.toc-page { font-family: var(--f-head); font-weight: 900; font-size: 34px; line-height: 1; color: var(--red); }
.toc-rub { font-family: var(--f-cond); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); }
.toc-title { font-family: var(--f-head); font-size: 20px; font-weight: 700; line-height: 1.25; transition: color .15s; }

/* ---------------- Sections ---------------- */
.rub { padding: 72px 0; background: var(--paper); }
.rub.alt { background: var(--cream); }
.rub.dark { background: var(--ink); color: var(--cream); }

.rub-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  border-top: 6px solid currentColor; padding-top: 14px; margin-bottom: 40px;
}
.rub-tag {
  display: inline-block; background: var(--red); color: #fff;
  font-family: var(--f-cond); font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 12px;
}
.rub-head h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -1px; }
.rub-dek { font-style: italic; font-size: 20px; color: var(--ink-soft); margin-top: 10px; max-width: 46ch; }
.rub.dark .rub-dek { color: var(--sand); }
.rub-page { font-family: var(--f-head); font-weight: 900; font-size: 72px; line-height: 0.85; color: var(--red); text-align: right; }
.rub-page small { display: block; font-family: var(--f-cond); font-size: 13px; font-weight: 400; letter-spacing: 2px; color: var(--stone); text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.grid-feature { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }

.kicker { font-family: var(--f-cond); font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.h-feature { font-family: var(--f-head); font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.h-card { font-family: var(--f-head); font-weight: 700; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.h-card a { text-decoration: none; }
.h-card a:hover { color: var(--red); }
.dek { font-style: italic; font-size: 20px; line-height: 1.45; color: var(--ink-soft); margin-bottom: 18px; }

.text p { margin-bottom: 1em; hyphens: auto; -webkit-hyphens: auto; text-align: left; max-width: 66ch; }
.dropcap::first-letter {
  font-family: var(--f-head); font-weight: 900; color: var(--red);
  float: left; font-size: 4.4em; line-height: 0.82; padding: 0.06em 0.1em 0 0;
}

.photo { position: relative; box-shadow: 0 18px 40px rgba(60,45,30,0.22); background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-32 { aspect-ratio: 3 / 2; }
.caption { font-family: var(--f-cond); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone); margin-top: 10px; }

.more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-cond); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.more:hover { color: var(--red); }
.rub.dark .more { color: var(--cream); }

.pull {
  font-family: var(--f-head); font-style: italic; font-size: 26px; line-height: 1.3;
  border-top: 3px solid var(--red); border-bottom: 1px solid var(--rule); padding: 20px 0; margin: 28px 0;
}
.pull::before { content: '“'; display: block; font-size: 72px; line-height: 0.5; color: var(--red); margin-bottom: 8px; font-style: normal; }

.box { background: var(--cream); border-top: 5px solid var(--ink); padding: 22px 24px; }
.rub.alt .box { background: var(--paper); }
.box-title { font-family: var(--f-cond); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.box ol, .box ul { list-style: none; }
.box li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.box li:last-child { border-bottom: 0; }
.box li b { font-family: var(--f-cond); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--red); font-size: 13px; display: block; }

/* Editor letter */
.editor { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.editor-sign { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.editor-sign img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.editor-sign div { font-family: var(--f-head); font-style: italic; font-size: 24px; }
.editor-sign small { display: block; font-family: var(--f-cond); font-style: normal; font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--stone); }

/* Shelf numbered list */
.shelf-list { list-style: none; counter-reset: s; }
.shelf-list li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.shelf-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-head); font-weight: 900; font-size: 36px; line-height: 1; color: var(--red); }
.shelf-list h3 { font-family: var(--f-cond); font-weight: 500; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
.shelf-list p { font-size: 16px; color: var(--ink-soft); }

/* Looks */
.look .photo { margin-bottom: 14px; }
.look-num { font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 40px; color: var(--red); line-height: 1; }
.look h3 { font-family: var(--f-cond); font-size: 19px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; margin: 4px 0 6px; }
.look p { font-size: 16px; color: var(--ink-soft); }

/* Poll */
.poll { background: var(--ink); color: var(--cream); padding: 26px; }
.poll h3 { font-family: var(--f-cond); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.poll p.q { font-family: var(--f-head); font-style: italic; font-size: 22px; line-height: 1.3; margin: 10px 0 18px; color: #fff; }
.poll-opt {
  position: relative; width: 100%; display: flex; justify-content: space-between; gap: 12px;
  background: transparent; color: var(--cream); border: 1px solid rgba(234,231,220,0.35);
  font-family: var(--f-body); font-size: 16px; text-align: left; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; overflow: hidden;
}
.poll-opt:hover { border-color: var(--red); }
.poll-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(232,90,79,0.35); transition: width .6s ease; }
.poll-opt span, .poll-opt strong { position: relative; }
.poll-opt strong { font-family: var(--f-cond); font-weight: 500; visibility: hidden; }
.poll.voted .poll-opt strong { visibility: visible; }
.poll.voted .poll-opt { cursor: default; }
.poll-opt.mine { border-color: var(--red); }
.poll-note { font-family: var(--f-cond); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--stone); margin-top: 6px; }

/* Finds */
.find h3 { font-family: var(--f-head); font-weight: 700; font-size: 24px; margin: 14px 0 4px; }
.find .addr { font-family: var(--f-cond); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); }
.find p { font-size: 16px; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--ink); color: var(--sand); padding: 48px 0 40px; border-top: 6px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.footer .logo { font-size: 44px; }
.footer p { font-family: var(--f-cond); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.footer a { color: var(--cream); }

/* ---------------- Article page ---------------- */
.art-hero { background: var(--paper); padding: 48px 0 24px; }
.crumbs { font-family: var(--f-cond); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--stone); margin-bottom: 24px; }
.crumbs a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--red); }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.art-title { font-family: var(--f-head); font-weight: 900; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.5px; margin-bottom: 18px; }
.art-byline { font-family: var(--f-cond); font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 8px; }
.art-byline b { color: var(--red); font-weight: 500; }
.art-body { background: var(--paper); padding: 32px 0 72px; }
.art-body .text { max-width: 680px; margin: 0 auto; font-size: 19px; }
.art-body .text p { max-width: none; }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 680px; margin: 48px auto 0; border-top: 6px solid var(--ink); padding-top: 18px; }
.art-nav a { text-decoration: none; display: block; }
.art-nav a:hover .t { color: var(--red); }
.art-nav .l { font-family: var(--f-cond); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--stone); }
.art-nav .t { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.25; }
.art-nav .next { text-align: right; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1500px) { .issue-tag { display: none; } }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; }
  .contents { width: 100%; max-width: 720px; }
  .issue-tag { display: none; }
}
@media (max-width: 900px) {
  .grid-2, .grid-feature, .editor, .art-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .rub { padding: 56px 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 96px; }
  body { font-size: 17px; }
  .wrap, .hero-grid, .topbar-inner { padding: 0 18px; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; gap: 6px 16px; }
  .nav { flex-basis: 100%; gap: 18px; }
  .hero { padding: 0 0 36px; }
  .hero-grid { padding: 0; gap: 28px; }
  .contents { padding: 0 18px; }
  .cover { width: 100%; height: auto; box-shadow: none; }
  .cl-stack, .cl-c { display: none; }
  .cover-lines { top: 34cqw; grid-template-columns: 52% 1fr 36%; }
  .cl-main .cl-title { font-size: 6.4cqw; }
  .cover-sticker { width: 20cqw; height: 20cqw; }
  .grid-3 { grid-template-columns: 1fr; }
  .rub-head { grid-template-columns: 1fr; }
  .rub-page { text-align: left; font-size: 56px; }
  .contents-title { font-size: 40px; }
  .art-nav { grid-template-columns: 1fr; }
  .art-nav .next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}
