/* ===== The Aydemir Review — broadsheet design system ===== */

:root {
  --paper: oklch(0.966 0.012 90);
  --paper-2: oklch(0.951 0.014 90);
  --ink: oklch(0.185 0.008 60);
  --muted: oklch(0.44 0.008 60);
  --rule: oklch(0.26 0.009 60);
  --hair: oklch(0.835 0.012 85);
  --accent: oklch(0.42 0.14 25);
  --maxw: 1200px;
  --pad: clamp(1.5rem, 4vw, 3rem);
  --font: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  background-image: radial-gradient(oklch(0.2 0.01 50 / 0.018) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

/* ===== layout ===== */
.sheet { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); overflow: hidden; }

/* ===== rules ===== */
.rule { border: 0; border-top: 1px solid var(--rule); }
.rule-thick { border: 0; border-top: 3px solid var(--rule); }
.rule-double { height: 5px; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rule-hair { border: 0; border-top: 1px solid var(--hair); }

/* ===== kicker / labels ===== */
.kicker {
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
}
.label {
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted);
}

/* ===== MASTHEAD ===== */
.masthead { padding-top: clamp(20px, 4vw, 40px); }
.masthead-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted); padding-bottom: 8px;
}
.masthead-top .mt-c { text-align: center; flex: 1; }
.masthead-top .mt-r { text-align: right; min-width: 120px; }
.masthead-top .mt-l { min-width: 120px; }
.nameplate {
  font-weight: 700; text-align: center;
  font-size: clamp(33px, 6.6vw, 80px); line-height: 1.0; letter-spacing: -0.02em;
  padding: 16px 0 14px; word-spacing: -0.03em; white-space: nowrap;
}
@media (max-width: 560px) { .nameplate { white-space: normal; line-height: 1.04; } }
.nameplate a { text-decoration: none; }

/* ===== NAV ===== */
.papernav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  padding: 9px 0; position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  backdrop-filter: blur(6px);
}
.papernav a {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600;
  color: var(--muted); text-decoration: none; padding: 4px 18px; position: relative;
  transition: color .2s; white-space: nowrap;
}
.papernav a + a { border-left: 1px solid var(--hair); }
.papernav a:hover { color: var(--ink); }
.papernav a.active { color: var(--accent); }
.papernav a::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
  background: var(--ink); transition: width 0.28s, left 0.28s;
}
.papernav a:hover::after { width: 100%; left: 0; }

/* ===== FRONT PAGE ===== */
.fold { margin-top: clamp(34px, 5vw, 60px); }
.section-bar {
  display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px;
  border-bottom: 3px double var(--rule); margin-bottom: 24px;
}
.section-bar h2 {
  font-weight: 700; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.01em;
  line-height: 1.08; white-space: nowrap; flex: 0 0 auto;
}
.section-bar .sb-note { margin-left: auto; font-style: italic; color: var(--muted); font-size: 14px; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cols-3 > * { padding: 0 clamp(16px, 2vw, 26px); border-left: 1px solid var(--hair); }
.cols-3 > *:first-child { padding-left: 0; border-left: 0; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cols-2 > * { padding: 0 clamp(16px, 2vw, 26px); border-left: 1px solid var(--hair); }
.cols-2 > *:first-child { padding-left: 0; border-left: 0; }

/* entries */
.entry { margin-bottom: 26px; }
.entry .e-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 5px; }
.entry .e-meta b { color: var(--accent); font-weight: 600; }
.entry h3 { font-weight: 700; font-size: 21px; line-height: 1.1; margin-bottom: 7px; }
.entry p { font-size: 15.5px; line-height: 1.5; color: var(--ink); text-align: justify; hyphens: auto; }
.entry ul { list-style: none; margin-top: 8px; }
.entry ul li { font-size: 15px; padding-left: 14px; position: relative; margin-bottom: 4px; color: var(--ink); }
.entry ul li::before { content: "\2014"; position: absolute; left: 0; color: var(--accent); }

/* case teasers */
.case-teasers { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 0; row-gap: 56px; margin-top: clamp(56px, 8vw, 96px); }
.case-teasers:first-of-type { margin-top: 0; }
.case-teasers article { padding: 0 clamp(16px, 2vw, 26px); border-left: 1px solid var(--hair); }
.case-teasers article:first-child { padding-left: 0; border-left: 0; }
.case-teasers .ct-year { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.case-teasers h3 { font-weight: 700; font-size: clamp(20px, 2vw, 25px); line-height: 1.05; margin-bottom: 10px; }
.case-teasers h3 a { text-decoration: none; }
.case-teasers h3 a:hover { color: var(--accent); }
.case-teasers .ct-dek { font-size: 15px; line-height: 1.5; color: var(--ink); text-align: justify; hyphens: auto; margin-bottom: 12px; }
.cont { font-style: italic; color: var(--accent); font-size: 21px; text-decoration: none; border-bottom: 1px solid currentColor; }
.cont:hover { opacity: 0.8; }

/* ===== CASE DOCUMENTS ===== */
.case-documents { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 20px; max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.case-doc { max-width: 100%; overflow: hidden; }
.case-doc h3 { font-size: 18px; margin-bottom: 12px; }
.pdf-embed { border-radius: 2px; overflow: hidden; max-width: 100%; }

/* excel viewer */
.excel-viewer { margin-top: 8px; max-width: 100%; }
.excel-tabs { display: flex; gap: 0; overflow-x: auto; max-width: 100%; border-bottom: 2px solid var(--rule); }
.excel-tab { padding: 8px 16px; font-family: var(--font); font-size: 12px; letter-spacing: 0.04em; background: var(--paper-2); border: 1px solid var(--hair); border-bottom: none; cursor: pointer; color: var(--muted); white-space: nowrap; border-radius: 4px 4px 0 0; margin-bottom: -2px; transition: background .15s, color .15s; }
.excel-tab:hover:not(.active) { background: var(--paper); color: var(--ink); }
.excel-tab.active { background: #fff; color: var(--ink); font-weight: 600; border-color: var(--rule); border-bottom: 2px solid #fff; }
.excel-viewer-box { width: 100%; height: 500px; border: 1px solid var(--hair); border-top: none; background: #fff; overflow: auto; }
.excel-viewer-box table { border-collapse: collapse; font-size: 12px; font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; min-width: 100%; }
.excel-viewer-box td, .excel-viewer-box th { border: 1px solid #e2e2e2; padding: 4px 10px; white-space: nowrap; vertical-align: top; }
.excel-viewer-box tr:first-child td, .excel-viewer-box th { background: #f5f5f5; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.excel-viewer-box tr:nth-child(even) td { background: #fafafa; }
.excel-viewer-box tr:hover td { background: oklch(0.95 0.02 90); }

/* ===== ARTICLE (case detail) ===== */
.article-head { padding: clamp(26px, 5vw, 48px) 0 0; text-align: center; }
.article-head .kicker { display: block; margin-bottom: 14px; }
.article-title {
  font-weight: 700; line-height: 1.04;
  font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -0.015em; max-width: 28ch; margin: 0 auto;
}
.article-dek {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 46ch; margin: 18px auto 0;
  text-align: center; color: var(--ink);
}
.article-body {
  columns: 2; column-gap: 42px; column-rule: 1px solid var(--hair);
  margin-top: clamp(28px, 4vw, 46px);
}
.article-body > * { break-inside: avoid-column; }
.article-section { break-inside: avoid-column; }
.article-body h3 {
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; color: var(--accent); margin: 0 0 8px; padding-top: 6px;
}
.article-body h3:not(:first-child) { margin-top: 22px; }
.article-body p { margin-bottom: 14px; text-align: justify; hyphens: auto; }
.article-body ul { list-style: none; margin: 0 0 14px; }
.article-body ul li { padding-left: 16px; position: relative; margin-bottom: 7px; }
.article-body ul li::before { content: "\00A7"; position: absolute; left: 0; color: var(--accent); font-size: 13px; }
.article-figure {
  margin: 18px 0; padding: 16px; border: 1px solid var(--rule); background: var(--paper-2);
  break-inside: avoid;
}
.article-figure .fig-quote { font-style: italic; font-size: 19px; line-height: 1.3; }
.article-figure .fig-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 8px; }
.backlink { display: inline-block; margin-top: 24px; font-style: italic; color: var(--accent); text-decoration: none; font-size: 15px; border-bottom: 1px solid currentColor; }

/* ===== CONTACT ===== */
.contact-wrap { text-align: center; padding: clamp(34px, 7vw, 80px) 0; }
.contact-wrap .big { font-weight: 700; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; max-width: 16ch; margin: 18px auto 0; }
.contact-lede { font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--ink); max-width: 40ch; margin: 24px auto 0; line-height: 1.45; }
.contact-rows { max-width: 560px; margin: clamp(30px, 5vw, 48px) auto 0; }
.contact-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--hair); gap: 16px; }
.contact-row:last-child { border-bottom: 1px solid var(--hair); }
.contact-row .cr-key { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.contact-row a, .contact-row span.val { font-size: clamp(18px, 2.4vw, 24px); text-decoration: none; }
.contact-row a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.paperfoot { margin-top: clamp(40px, 7vw, 80px); padding: 22px 0 48px; border-top: 3px double var(--rule); }
.paperfoot .pf-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

/* ===== responsive ===== */
@media (max-width: 880px) {
  .cols-3, .case-teasers { grid-template-columns: 1fr; }
  .cols-3 > *, .case-teasers article {
    border-left: 0; padding-left: 0; padding-right: 0;
    border-top: 1px solid var(--hair); padding-top: 18px; margin-top: 4px;
  }
  .cols-3 > *:first-child, .case-teasers article:first-child { border-top: 0; padding-top: 0; }
  .cols-2 { grid-template-columns: 1fr; }
  .cols-2 > * { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--hair); padding-top: 18px; margin-top: 4px; }
  .cols-2 > *:first-child { border-top: 0; padding-top: 0; }
  .article-body { columns: 1; }
}
@media (max-width: 560px) {
  .masthead-top .mt-l, .masthead-top .mt-r { display: none; }
}
