/* goggo.net: warm photo-album look, Goggo red, system fonts only (no external font requests) */
:root {
  --paper: #f6efe1;
  --paper-2: #efe4cf;
  --card: #fffaf0;
  --ink: #2a211c;
  --ink-2: #6b5d52;
  --red: #b3221b;
  --red-dark: #8c1913;
  --line: #ddcfb6;
  --shadow: 0 1px 2px rgba(60, 40, 20, .12), 0 6px 18px rgba(60, 40, 20, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1916; --paper-2: #262019; --card: #2a241f; --ink: #f1e8da; --ink-2: #b8a996;
    --red: #e0574d; --red-dark: #f07a70; --line: #3d342b; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.6rem/1 var(--serif); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand .dot { color: var(--red); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--paper-2); color: var(--red); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 75% 60%, var(--paper-2), transparent 70%); border-bottom: 1px solid var(--line); }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--red); font-weight: 600; margin: 0 0 8px; }
.hero h1 { font: 700 clamp(2.1rem, 5vw, 3.4rem)/1.08 var(--serif); margin: 0 0 16px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero-car img { display: block; width: 100%; max-width: 480px; margin: 0 auto; filter: drop-shadow(0 18px 18px rgba(60, 30, 10, .25)); }
.btn { display: inline-block; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; margin: 4px 6px 4px 0; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }

/* archive */
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 40px 0 8px; }
.section-head h1, .section-head h2 { font: 700 2rem/1.2 var(--serif); margin: 0; }
.year-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.year-nav a { text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-2); background: var(--card); }
.year-nav a:hover { color: var(--red); border-color: var(--red); }
.year h2 { font: 700 1.25rem/1 var(--serif); margin: 32px 0 14px; display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.year h2::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.year h2 span { background: var(--red); color: #fff; padding: 6px 12px; border-radius: 6px; }
.year-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 18px; }
.year-row .year h2::after { display: none; }
.year-row .cards { grid-template-columns: 1fr; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 2px 4px rgba(60,40,20,.14), 0 12px 28px rgba(60,40,20,.14); }
.card-img { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-noimg { display: block; width: 100%; height: 100%; background: url(/assets/goggo.webp) center / 46% no-repeat, var(--paper-2); opacity: .55; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-body time { font-size: .82rem; color: var(--ink-2); }
.card-body strong { font: 700 1.05rem/1.3 var(--serif); }
.card-info { font-size: .82rem; color: var(--red); font-weight: 600; }

/* posts */
.post { padding-top: 8px; padding-bottom: 32px; }
.crumbs { font-size: .85rem; color: var(--ink-2); margin: 18px 0 0; }
.crumbs a { color: var(--ink-2); }
.post-head h1, .post > h1, .photo-page h1 { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.15 var(--serif); margin: 10px 0 6px; }
.photo-page h1 small { display: block; font: 400 1rem var(--sans); color: var(--ink-2); margin-top: 6px; }
.meta { color: var(--ink-2); margin: 0 0 20px; }
.prose { max-width: 760px; }
.prose img { border-radius: 6px; }
.prose .alignright { float: right; margin: 0 0 12px 20px; }
.prose .alignleft { float: left; margin: 0 20px 12px 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose address { font-style: normal; }
.partner-logo { display: inline-block; line-height: 0; border-radius: 8px; }
.partner-logo img { border-radius: 0; }
@media (prefers-color-scheme: dark) { .partner-logo { background: #f6efe1; padding: 8px 12px; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 24px 0; }
.g-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--paper-2); box-shadow: var(--shadow); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 8px; }
.pager a { background: var(--card); border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); font-family: var(--serif); font-weight: 700; }
.pager a small { display: block; font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.pager .next { text-align: right; }
.photo { margin: 16px 0; text-align: center; }
.photo img { border-radius: 8px; box-shadow: var(--shadow); }
.photo-pager a { font-family: var(--sans); font-weight: 600; }
.back { text-align: center; }
.ad { margin: 28px 0; min-height: 90px; }

/* footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding-top: 18px; padding-bottom: 18px; }
.footer-row p { margin: 0; }
.site-footer a { color: var(--ink-2); }

/* lightbox */
.lb-open, .lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 8, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 64px 16px; }
.lb-img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-cap { color: #d9cfc2; font-size: .9rem; margin-top: 10px; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.25); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-row { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-car { order: -1; }
  .hero-car img { max-width: 260px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .year-row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 12px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .prose .alignright, .prose .alignleft { float: none; margin: 0 0 12px; }
  .lb-fig { padding: 56px 8px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
