/* Round 5 shared base for the fun colour-block family, taken from AE (agreed: "really like how fun AE is"). Designs override tokens and add one signature idea. */
:root {
  --ink: #141414;
  --c1: #ff5c39;
  --c2: #2948ff;
  --c3: #ffd23f;
  --c4: #9be3c3;
  --c5: #ffb3d1;
  --gut: clamp(1rem, 4vw, 3.5rem);
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --type: "Courier Prime", "Courier New", monospace;
  --star-on: var(--ink);
  --star-off: rgba(20, 20, 20, 0.2);
}
body { background: #fff8ee; color: var(--ink); font: 400 1.05rem/1.45 var(--sans); }
a { text-decoration: none; }

.top { display: flex; align-items: center; gap: 2rem; padding: 1rem var(--gut); flex-wrap: wrap; }
.mark { font-weight: 800; font-size: 1.15rem; line-height: 0.9; letter-spacing: -0.03em; }
.nav ul { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.nav a { display: block; padding: 0.35rem 0.8rem; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.nav a:hover { background: var(--ink); color: #fff8ee; }
.search { margin-left: auto; }
.search input { width: 12rem; border: 2px solid var(--ink); border-radius: 999px; padding: 0.35rem 0.9rem; background: transparent; }

.blk { padding: clamp(3rem, 7vw, 6rem) var(--gut); position: relative; overflow: clip; }
.blk h2 { font-weight: 800; font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 0.88; letter-spacing: -0.05em; margin-bottom: 2rem; }
.blk--1 { background: var(--c1); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 3rem; align-items: end; }
.lbl { grid-column: 1 / -1; font-family: var(--type); font-size: 0.85rem; display: flex; gap: 0.6rem; align-items: center; }
.blk--1 h1 { font-weight: 800; font-size: clamp(3.2rem, 10vw, 9rem); line-height: 0.85; letter-spacing: -0.06em; }
.cut { grid-row: 2 / span 2; grid-column: 2; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 24px 24px; border: 3px solid var(--ink); }
.cut img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; filter: grayscale(1) contrast(1.15); }
.blk--1 .dek { font-size: 1.25rem; max-width: 36ch; }
.blk--1 .dek a { font-weight: 700; border-bottom: 3px solid var(--ink); }

.blk--2 { background: var(--c2); color: #fff; --star-on: var(--c3); --star-off: rgba(255, 255, 255, 0.3); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.cards a { display: flex; flex-direction: column; gap: 0.4rem; background: #fff; color: var(--ink); padding: 0.8rem 0.8rem 1.1rem; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s; --star-on: var(--c1); --star-off: rgba(20, 20, 20, 0.15); }
.cards a:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.cards figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; margin-bottom: 0.4rem; }
.cards img { width: 100%; height: 100%; object-fit: cover; }
.cards h3 { font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: -0.03em; }
.cards p { font-size: 0.92rem; }

.blk--3 { background: var(--c3); }
.big li a { display: flex; align-items: baseline; gap: 1.2rem; padding: 0.3rem 0; border-top: 3px solid var(--ink); }
.big .n { font-family: var(--type); font-size: 1rem; }
.big .t { font-weight: 800; font-size: clamp(1.8rem, 5.5vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; transition: transform 0.2s; }
.big a:hover .t { transform: translateX(1rem); }
.btn { display: inline-block; margin-top: 2rem; background: var(--ink); color: var(--c3); padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 700; }

.blk--4 { background: var(--c4); }
.ess { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.ess a { display: flex; flex-direction: column; gap: 0.8rem; height: 100%; padding: 1.6rem; border: 3px solid var(--ink); border-radius: 24px; background: #fff8ee; }
.ess h3 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.04em; }
.go { margin-top: auto; font-family: var(--type); font-size: 0.85rem; }
.ess a:hover { background: var(--ink); color: var(--c4); }

.blk--5 { background: var(--c5); }
.bio { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.tags a { border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 600; }
.tags a:hover { background: var(--ink); color: var(--c5); }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem var(--gut) 5rem; font-family: var(--type); font-size: 0.75rem; }

@media (max-width: 52em) {
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .blk--1 { grid-template-columns: minmax(0, 1fr); }
  .cut { grid-row: auto; grid-column: auto; max-width: 18rem; }
  .cards, .ess { grid-template-columns: minmax(0, 1fr); }
}

/* Extras used by some designs (hidden unless a design turns them on) */
.sticker { display: none; }
.ticker { overflow: hidden; background: var(--ink); color: #fff8ee; padding: 0.7rem 0; white-space: nowrap; }
.ticker__track { display: flex; width: max-content; animation: tk var(--tk-duration, 30s) linear infinite; }
.ticker__group { display: flex; }
.ticker__group > span { padding-right: 0; }
@keyframes tk { to { transform: translateX(-50%); } }
.big .y { margin-left: auto; font-family: var(--type); font-size: 0.85rem; }
