/* Pom and Paddy — modern layout, 2004-flavoured text and photos */

:root {
  --bg: #f6f3ea;
  --paper: #fff;
  --ink: #1d1d1b;
  --muted: #5c5a52;
  --line: #d9d4c4;
  --accent: #0b4f9c;
  --blue: #0000d0;   /* diary text, as per the original */
  --red: #cc0000;
  --purple: #6a0dad;
  --header-h: 3.5rem;
  --chip-h: 2.75rem;
  --body-font: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Segoe Print", cursive, sans-serif;
  --head-font: Verdana, Geneva, sans-serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--ui-font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 52rem; margin: 0 auto; padding: 0 1rem; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  font: bold 1.25rem var(--head-font);
  color: var(--blue); text-decoration: none;
}
.brand span { color: var(--red); }
nav[aria-label="Main"] { display: flex; gap: .25rem; }
nav[aria-label="Main"] a {
  padding: .4rem .8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
nav[aria-label="Main"] a:hover { background: var(--bg); }
nav[aria-label="Main"] a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---- footer ---- */
.site-footer {
  margin-top: 4rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem; text-align: center;
}
.site-footer p { margin: 0; }

/* ---- headings ---- */
h1 { font: bold 2rem/1.2 var(--head-font); margin: 2rem 0 .5rem; color: var(--blue); }
h2 { font: bold 1.5rem/1.25 var(--head-font); margin: 2.5rem 0 .75rem; }
.lede { font-family: var(--body-font); font-size: 1.1rem; color: var(--muted); max-width: 40rem; }

/* ---- home ---- */
.hero {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.5rem;
}
@media (min-width: 46rem) { .hero { grid-template-columns: 480px minmax(0, 1fr); } }
.hero figure { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .65rem 1.2rem; border-radius: .5rem;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.btn.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn:hover { filter: brightness(1.1); }

/* ---- photos ---- */
figure { margin: 0; }
figure img {
  border: 1px solid #888; background: #ddd;
  box-shadow: 0 2px 6px rgb(0 0 0 / .25);
}
figcaption {
  margin-top: .5rem; text-align: center;
  font: bold .8rem/1.35 "Times New Roman", Times, serif; color: var(--ink);
}
.hero figcaption { font-size: .9rem; }
.photos {
  display: grid; gap: 1.25rem 1rem; justify-content: center;
  margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 22rem));
}
.photos.n1 { grid-template-columns: minmax(0, 30rem); }
.photos.n2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 24rem)); }

/* ---- diary ---- */
.week-grid {
  display: grid; gap: 1rem; margin: 1.5rem 0 2rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.week-card {
  display: flex; flex-direction: column; gap: .15rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: .5rem;
  overflow: hidden; text-decoration: none; color: var(--ink);
  padding-bottom: .75rem;
}
.week-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: .5rem; }
.week-card > span { padding: 0 .75rem; }
.week-card:hover { border-color: var(--accent); }
.wk { font-weight: 700; color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.wt { font-weight: 600; line-height: 1.3; }
.wd { color: var(--muted); font-size: .8rem; }

.chipbar {
  position: sticky; top: var(--header-h); z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.chipbar .wrap {
  display: flex; align-items: center; gap: .35rem;
  min-height: var(--chip-h); overflow-x: auto; scrollbar-width: thin;
}
.chipbar span { font-size: .8rem; color: var(--muted); margin-right: .25rem; }
.chipbar a {
  flex: none; min-width: 2rem; text-align: center; padding: .15rem .5rem;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: .9rem;
}
.chipbar a:hover { border-color: var(--accent); }

.diary { background: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.week { padding-top: 2rem; scroll-margin-top: calc(var(--header-h) + var(--chip-h)); }
.week + .week { border-top: 3px double var(--line); margin-top: 2rem; }
.week-head .kicker {
  margin: 0; color: var(--accent); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.week-head h2 { margin-top: .25rem; }
.day { scroll-margin-top: calc(var(--header-h) + var(--chip-h)); }
.day h3 {
  font: bold 1.35rem/1.3 var(--head-font); text-align: center;
  margin: 2.25rem 0 1rem;
}
.day p { font-family: var(--body-font); font-size: 1rem; margin: 0 0 1rem; }
.c-blue { color: var(--blue); }
.c-red { color: var(--red); }
.c-purple { color: var(--purple); }
.week-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: 2rem 0 0; padding: 1rem 0 2rem; font-weight: 600;
}

/* ---- trip tables ---- */
.table-scroll { overflow-x: auto; margin: 1rem 0 2rem; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--paper);
  font-size: .9rem; border: 1px solid var(--line);
}
.data th, .data td { padding: .45rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
.data thead th { background: #ebe6d6; position: sticky; top: 0; }
.data tbody th { font-weight: 400; }
.plan td { white-space: nowrap; }
.plan tbody th { min-width: 11rem; }
.plan td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.plan tbody tr:not(.leg) th { padding-left: 1.75rem; }
.plan tr.leg th, .plan tr.leg td { font-weight: 700; background: #f1ecda; }
.stats tbody tr:nth-child(even) { background: #faf8f1; }

@media (max-width: 34rem) {
  h1 { font-size: 1.6rem; }
  .site-header .bar { padding-top: .35rem; padding-bottom: .35rem; flex-wrap: wrap; }
  nav[aria-label="Main"] a { padding: .35rem .6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.key { font-family: var(--body-font); font-weight: 700; margin: 0 0 1rem; }
