/* The Stud Times */
:root {
  --paper: #F3ECDA; --ink: #1A1713; --red: #7A1F12; --tone: #CFC4AA; --rule: #B9AD92; --desk: #D9CFB8;
  --black: 'UnifrakturMaguntia', 'Old English Text MT', serif;
  --head: 'Playfair Display', Georgia, serif;
  --body: 'Libre Baskerville', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--ink); }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.paper { background: var(--paper); max-width: 1000px; margin: 0 auto; padding: 36px clamp(18px, 4vw, 56px) 56px; display: flex; flex-direction: column; gap: 56px; box-shadow: 0 0 0 1px var(--rule), 0 18px 50px rgba(40, 30, 10, .25); min-height: 100vh; }
main { display: flex; flex-direction: column; gap: 56px; }
main > section { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 20px; }
.mono { font-family: var(--mono); font-weight: 700; }
.small { font-size: 12px; letter-spacing: 4px; font-weight: 500; }
.center { text-align: center; }

/* masthead */
.mast { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.mast .name { font-family: var(--black); font-size: clamp(40px, 7vw, 64px); line-height: .95; text-decoration: none; }
.mast .name.big { font-size: clamp(56px, 11vw, 120px); }
.mast .tag { margin: 0; font-style: italic; font-size: 18px; }
.dateline { border-top: 4px double var(--ink); border-bottom: 4px double var(--ink); padding: 8px 0; margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
nav a, nav span { padding: 6px 10px; text-decoration: none; }
nav .on { background: var(--ink); color: var(--paper); }

/* type */
.label { text-align: center; font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; scroll-margin-top: 20px; }
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 3px; }
.dek { margin: 0; font-family: var(--head); font-style: italic; font-size: 21px; line-height: 1.35; }
.note { margin: 0; font-size: 14px; font-style: italic; }
.est { color: var(--red); }
.ptitle { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.ptitle h2 { margin: 0; font-family: var(--head); font-weight: 900; font-size: clamp(36px, 6vw, 60px); line-height: 1.02; text-transform: uppercase; }
.ptitle .dek { max-width: 36ch; margin: 0 auto; }

/* lead */
.lead { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.flag { align-self: center; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 4px; padding: 6px 14px; }
.huge { font-family: var(--head); font-weight: 900; font-size: clamp(64px, 13vw, 132px); line-height: .9; letter-spacing: -2px; }
.lead h2 { margin: 0; font-family: var(--head); font-weight: 900; font-size: clamp(28px, 4.5vw, 44px); line-height: 1.1; text-transform: uppercase; max-width: 22ch; align-self: center; }
.lead .dek { max-width: 34ch; margin: 0 auto; font-size: 22px; }
.more { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 2px; align-self: center; }

/* photos: printed halftone look */
.photo { margin: 0; position: relative; height: var(--h, 320px); border: 2px solid var(--ink); overflow: hidden; background: var(--tone); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35) sepia(.25); display: block; }
.photo::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(26, 23, 19, .35) 1px, transparent 1.3px); background-size: 4px 4px; mix-blend-mode: multiply; pointer-events: none; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--paper); border: 1px solid var(--ink); font-size: 12px; font-style: italic; padding: 3px 8px; z-index: 1; }
.photo figcaption:empty { display: none; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { text-decoration: none; border: 2px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 6px; text-align: center; transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.card .big { font-family: var(--head); font-weight: 900; font-size: 48px; line-height: 1; }
.card b { font-family: var(--head); font-size: 21px; line-height: 1.2; }
.card .sub { font-size: 15px; font-style: italic; }
.card .more { margin-top: 4px; }

/* events + ad */
.events { display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.events div { display: flex; gap: 18px; align-items: baseline; }
.events b { font-family: var(--mono); min-width: 90px; }
.ad, .box { border: 4px double var(--ink); padding: 26px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ad-h { font-family: var(--head); font-weight: 900; font-size: clamp(30px, 5vw, 40px); line-height: 1.05; }
.ad-name { font-family: var(--black); font-size: 44px; line-height: 1.1; }
.btn { font-family: var(--mono); font-weight: 700; font-size: 16px; border: 2px solid var(--ink); padding: 12px 18px; text-decoration: none; margin-top: 6px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.box-h { font-family: var(--head); font-weight: 900; font-size: 30px; }

/* stories */
.story { display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 28px; scroll-margin-top: 20px; }
.story h3 { margin: 0; font-family: var(--head); font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; text-transform: uppercase; }
.story p { margin: 0; }
.story .dek { font-size: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.facts div { display: flex; flex-direction: column; gap: 2px; text-align: center; padding: 10px; border: 1px solid var(--ink); }
.facts b { font-family: var(--head); font-weight: 900; font-size: 26px; line-height: 1.1; }
.facts span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.src { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; }

/* markets */
.price { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; align-items: baseline; }
.price .p { font-family: var(--head); font-weight: 900; font-size: clamp(56px, 10vw, 80px); line-height: 1; }
.price .moves { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-size: 17px; font-weight: 700; }
.chartbox { border: 2px solid var(--ink); padding: 16px 14px 6px; }
.chart { width: 100%; height: auto; display: block; }
.chart .g { stroke: var(--ink); stroke-opacity: .25; stroke-dasharray: 3 4; }
.chart .m { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.chart .a { font-family: var(--head); font-style: italic; font-weight: 700; font-size: 16px; fill: var(--ink); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.chart .area { fill: var(--ink); fill-opacity: .08; }
.chart circle { fill: var(--ink); }
.chart circle:hover { fill: var(--red); r: 6; }
.quote { margin: 0; text-align: center; font-family: var(--head); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1.2; }
.deals { display: flex; flex-direction: column; gap: 14px; }
.deals h4 { margin: 0; font-family: var(--head); font-size: 24px; }
.deal { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px dotted var(--ink); padding-bottom: 14px; }
.deal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; font-size: 19px; }
.deal-top i { font-size: 14px; }
.deal-price { display: flex; gap: 10px; align-items: center; }
.deal-price b { font-family: var(--head); font-weight: 900; font-size: 30px; }
.tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 2px 6px; border: 2px solid var(--ink); }
.tag.est { border-color: var(--red); color: var(--red); }
.bar { height: 18px; background: var(--ink); }
.bar.est { background: repeating-linear-gradient(45deg, var(--ink) 0 3px, transparent 3px 7px); border: 2px solid var(--ink); }

/* studio flex */
.flex-post { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.flex-post figcaption { text-align: center; font-size: 15px; font-style: italic; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.empty { border: 2px dashed var(--ink); padding: 40px 24px; text-align: center; font-family: var(--head); font-style: italic; font-size: 22px; background: repeating-radial-gradient(circle at 0 0, transparent 0 6px, rgba(26, 23, 19, .04) 6px 7px); }

/* rest in peace */
.stones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.stone { border: 3px solid var(--ink); border-radius: 120px 120px 6px 6px; padding: 34px 20px 24px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.stone .here { font-family: var(--black); font-size: 22px; }
.stone b { font-family: var(--head); font-size: 26px; line-height: 1.1; }
.stone i { font-size: 16px; }

/* help wanted + archive */
.listings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.listing { border: 2px solid var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.archive { display: flex; flex-direction: column; gap: 12px; }
.arch { text-decoration: none; border-bottom: 1px dotted var(--ink); padding-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.arch b { font-family: var(--head); font-size: 22px; }

/* footer */
.foot { border-top: 4px double var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; text-align: center; font-size: 13px; }
.foot .corr { font-style: italic; }
.foot .follow { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 1px; align-self: center; border: 2px solid var(--ink); padding: 8px 14px; text-decoration: none; }
.foot .follow:hover { background: var(--ink); color: var(--paper); }
.foot .mono { font-size: 11px; font-weight: 500; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .paper { gap: 44px; padding-top: 24px; }
  main { gap: 44px; }
  nav { font-size: 11px; }
  nav a, nav span { padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* game pictures + play button */
.game { display: flex; flex-direction: column; gap: 10px; }
.game-pic img { filter: grayscale(.85) contrast(1.15) sepia(.3); transition: filter .25s ease; }
.game-pic:hover img { filter: none; }
.play { align-self: flex-start; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 1px; border: 2px solid var(--ink); padding: 10px 14px; text-decoration: none; background: var(--paper); }
.play:hover { background: var(--ink); color: var(--paper); }
.lead .play { align-self: center; }

/* embeds */
.flex-post .twitter-tweet, .flex-post .tiktok-embed { margin: 0 auto !important; }
.yt { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .game-pic img { transition: none; } }
