/* robertlinnemann.com — 2026 refresh.
   Plain CSS, no build step. Old boxstyles.css is no longer used by index.html. */

:root {
  --paper: #ecebe6;
  --card: #ffffff;
  --ink: #1d1d1f;
  --muted: #5d5d63;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #a15c00;        /* sax brass */
  --accent-ink: #7a4500;
  --radius: 28px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --head: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151517;
    --card: #222226;
    --ink: #f2f2f4;
    --muted: #a8a8b0;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #f0b35a;
    --accent-ink: #f6c97f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--body);
}

a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; border: 0; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 .8em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; padding: 56px 20px 40px; }
.hero img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -.02em; margin-bottom: .1em; }
.hero .role { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin-bottom: 16px; }
.hero .bio { max-width: 680px; font-size: 17px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 18px 0 22px; padding: 0; list-style: none; }
.stats li { font-size: 14px; color: var(--muted); }
.stats strong { display: block; font-family: var(--head); font-size: 28px; color: var(--ink); line-height: 1.1; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none;
}
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button:hover { opacity: .88; }

section { padding: 40px 0; }
.section-lede { color: var(--muted); max-width: 680px; font-size: 17px; margin-bottom: 24px; }

/* App squares */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.app {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.12); }
.app-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  display: grid; place-items: center;
  background: var(--tint, #333);
}
.app-media .shot { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.app-media .shot.phone { width: auto; height: 92%; object-fit: contain; margin-top: 8%; border-radius: 22px 22px 0 0; box-shadow: 0 10px 40px rgba(0,0,0,.35); align-self: end; }
.app-media .shot.wide { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.app-icon {
  position: absolute; left: 16px; bottom: 16px; width: 72px; height: 72px;
  border-radius: 22.5%; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.35);
  background: #fff;
}
.app-icon.watch { border-radius: 50%; }
.app-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-body h3 { margin: 0; font-size: 22px; }
.app-body p { margin: 0; color: var(--muted); font-size: 15px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.app-meta li { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.app-meta li.price { color: var(--accent-ink); border-color: currentColor; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.app-links a { font-size: 14px; padding: 7px 14px; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.filters button {
  font: 600 14px var(--body); color: var(--ink); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.filters button[aria-pressed="false"] { color: var(--muted); }
.filters button.select-all { border-style: dashed; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Archive tiles (the original "boxes") */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
/* Every tile is the same square, like the original site. Longer content scrolls inside. */
.tile {
  aspect-ratio: 1 / 1; overflow-y: auto; scrollbar-width: thin;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 20px; font-size: 14px; overflow-wrap: anywhere;
}
.tile[hidden] { display: none; }
.tile h3 { font-size: 18px; }
.tile h4 { font-size: 14px; margin: .6em 0 .2em; }
.tile img { border-radius: 12px; max-height: 150px; width: auto; }
.tile .small { font-size: 12px; color: var(--muted); }
.tile time { display: block; clear: both; text-align: right; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tile audio { width: 100%; margin: 6px 0; }
.tile iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.tile.highlight { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile ul { padding-left: 18px; margin: 0; }
.tile .center { text-align: center; }
.float-r { float: right; margin: 0 0 6px 10px; }
.float-l { float: left; margin: 0 10px 6px 0; }

/* Kind words */
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.quote { aspect-ratio: 1 / 1; overflow-y: auto; scrollbar-width: thin; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; }
/* auto margins center short quotes but still let long ones scroll from the top */
.quote blockquote { margin: auto 0 10px; font-size: 15px; }
.quote figcaption { margin-bottom: auto; }
.quote figcaption { font-size: 13px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; gap: 20px; }
  .hero img { width: 160px; height: 160px; margin: 0 auto; }
  .hero .bio { margin: 0 auto; }
  .stats, .links { justify-content: center; }
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav .hide-sm { display: none; }
}

.brand, .site-nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 440px) {
  .brand { font-size: 19px; }
  .site-nav .hide-xs { display: none; }
}
