/* personalblimp.com. Colors follow the old site: Skyacht yellow (#ffcc00), red links, black. */
:root {
  --yellow: #ffcc00;
  --yellow-soft: #fff5cc;
  --ink: #1a1a1a;
  --muted: #555049;
  --red: #c4141b;
  --red-dark: #8f0d12;
  --card: #ffffff;
  --line: #e6d9a8;
  --radius: 10px;
  --wrap: 68rem;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--yellow-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header: yellow band with the Skyacht logo, black menu bar */
.site-header { background: var(--yellow); }
.header-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: clamp(150px, 30vw, 230px); height: auto; }
.brand strong { display: block; font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0.04em; line-height: 1.1; text-transform: uppercase; }
.brand small { display: block; font-size: 1rem; }

.site-header nav { background: var(--ink); }
.site-header nav ul { list-style: none; margin: 0 auto; padding-top: 0.35rem; padding-bottom: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-header nav a {
  display: block; padding: 0.35rem 0.6rem; border-radius: 6px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-header nav a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.site-header nav a:focus-visible { outline-color: var(--yellow); }
.site-header nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }

/* Main content */
main.wrap { flex: 1; padding-top: 2rem; padding-bottom: 2.5rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-top: 0; }
.lede { font-size: 1.2rem; color: var(--muted); }

.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose img { border-radius: 4px; }
.prose li + li { margin-top: 0.3em; }
.prose figure { margin: 0 0 1.5rem; }
.prose figcaption { color: var(--muted); font-size: 0.95rem; }
.prose a:has(> img) { text-decoration: none; display: inline-block; }
.center { text-align: center; }
.center img { display: inline-block; }
.table-wrap { display: block; max-width: 100%; overflow-x: auto; }
table.data { border-collapse: collapse; margin: 1.25rem 0; }
table.data td, table.data th { border: 1px solid var(--line); padding: 0.4rem 0.6rem; vertical-align: top; text-align: left; }
table.data tr:nth-child(even) td { background: #fffbea; }

/* Photo galleries */
.thumbs { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.thumbs a { display: block; }
.thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.prose .thumbs li { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #ddd; font-size: 0.9rem; padding: 1.25rem 0; }
.site-footer p { margin: 0.4rem 0; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }

@media (max-width: 40rem) {
  .site-header nav ul { gap: 0.15rem; }
  .site-header nav a { padding: 0.3rem 0.5rem; font-size: 0.9rem; }
}

/* Home page */
.home h1 { margin-bottom: 1.5rem; }
.hero img { display: block; margin: 0 auto 0.5rem; border: 1px solid var(--line); }
.home .hero { margin-bottom: 2rem; }
.home h2 { margin-top: 0; }
.home > h2, .home > p { max-width: 44rem; margin-left: auto; margin-right: auto; }
.home > .note { background: var(--yellow-soft); border-left: 4px solid var(--red); padding: 0.75rem 1rem; }
.quotes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 4rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.quotes blockquote { margin: 0; font-style: italic; }
.quotes blockquote p { margin: 0 0 0.5rem; }
.quotes footer { text-align: right; font-style: normal; }

/* Contact page */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }
