/* ==========================================================================
   pedrom.link — shared styles
   Cream paper, cobalt ink, pink highlighter. One paragraph that talks.
   ========================================================================== */

:root {
  --bg: #f8f3e6;
  --ink: #1f3fd6;
  --muted: #6f7bb8;
  --rule: rgba(31, 63, 214, 0.25);
  --pink: #ff8fc6;

  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;

  --page-pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--pink); color: var(--ink); }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink);
  transition: background-color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover, a:focus-visible { background: var(--pink); text-decoration-color: transparent; outline: none; }

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

/* ---------- layout ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--page-pad) 56px;
}

/* ---------- type helpers ---------- */
.mono { font-family: var(--mono); font-size: 15px; line-height: 1.6; }
.small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.small a { color: var(--ink); }
.hand { font-family: var(--hand); font-weight: 500; line-height: 1.05; }

/* highlighter stroke */
.hl {
  background: linear-gradient(180deg, transparent 20%, var(--pink) 20%, var(--pink) 90%, transparent 90%);
  padding: 0 0.12em;
  margin: 0 -0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.ring {
  width: 92px;
  height: 92px;
  position: relative;
  flex: none;
  text-decoration: none;
  display: block;
}
.ring:hover { background: transparent; }
.ring svg { width: 100%; height: 100%; display: block; animation: ring-spin 28s linear infinite; }
.ring svg text { fill: var(--ink); font-family: var(--mono); font-size: 9.5px; letter-spacing: 2px; }
.ring::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--pink);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  gap: 32px;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a { text-decoration: none; padding: 2px 0; }
.nav-links a:hover { background: transparent; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.nav-links a.pill, .nav-links a.is-active { background: var(--pink); padding: 2px 8px; }
.nav-links a.pill:hover, .nav-links a.is-active:hover { text-decoration: none; }

/* ---------- section with side title ---------- */
.section {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
}
.section-title { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-weight: 400; }
.section-sub { margin-top: 8px; }

/* ---------- list rows ---------- */
.list { font-family: var(--mono); font-size: 15px; line-height: 1.6; }
.list a { text-decoration-thickness: 1px; }
.row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 260px;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.row:last-of-type { border-bottom: 1px solid var(--rule); }
.row.two { grid-template-columns: 260px minmax(0, 1fr); }
.list-foot { padding-top: 16px; }
.mark { background: linear-gradient(180deg, transparent 18%, var(--pink) 18%, var(--pink) 92%, transparent 92%); padding: 0 6px; margin: 0 -2px; }

/* ---------- photo tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tiles a { display: block; text-decoration: none; }
.tiles a:hover { background: transparent; }
.tiles img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 3px; background: #e6dfd0; transition: transform 0.25s ease; }
.tiles a:hover img { transform: translateY(-3px); }
.tiles-captions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 140px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.footer-hello { font-size: 30px; letter-spacing: -0.02em; line-height: 1.2; }
.footer-hello a { text-decoration: none; }
.footer-meta { text-align: right; line-height: 1.8; }
.footer-meta a { text-decoration: none; }

/* ---------- easter egg toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 16px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section { grid-template-columns: 1fr; gap: 18px; margin-top: 64px; }
  .section-title { font-size: 22px; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .row .small:first-child { order: -1; }
  .row.two { grid-template-columns: 1fr; }
  .tiles, .tiles-captions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles a:nth-child(n+4), .tiles-captions span:nth-child(n+4) { display: none; }
  .footer { margin-top: 80px; flex-direction: column; align-items: flex-start; }
  .footer-hello { font-size: 22px; }
  .footer-meta { text-align: left; }
  .ring { width: 64px; height: 64px; }
  .ring::after { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .nav-links { gap: 14px; font-size: 12px; padding-top: 0; align-self: center; }
  .mono, .list { font-size: 13px; }
  .small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring svg { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
