/* The VeArd Family: one shared stylesheet for every page.
   Palette: a harbor at dusk. Deep navy for Tim's Navy years, brass like a ship's fittings,
   sea-glass teal for links, and warm linen paper for reading. */

:root {
  --paper: #f7f3ec;        /* linen */
  --card: #fffdf9;
  --ink: #1f2933;
  --muted: #5b6570;
  --navy: #1b2e44;
  --navy-deep: #13202f;
  --brass: #b48a45;
  --brass-light: #d9bf8c;
  --cream: #f4ead6;
  --accent: #1d5e69;       /* links: sea-glass teal */
  --accent-dark: #123f47;
  --rule: #e2dacb;
  --measure: 38rem;
  --serif-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(29, 94, 105, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
a:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

/* Header: deep navy with a soft glow, a fine brass line along the bottom. */
.site-header {
  background:
    radial-gradient(ellipse at 85% -20%, rgba(217, 191, 140, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 3px solid var(--brass);
  padding: 2.25rem 1.25rem 0;
}

.site-title {
  display: block;
  max-width: var(--measure);
  margin: 0 auto;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.1rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--cream);
  text-decoration: none;
}
.site-title:hover { color: #ffffff; }

.site-header nav {
  max-width: var(--measure);
  margin: 1.4rem auto 0;
}

.site-header ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.site-header li a {
  display: block;
  padding: 0.7rem 0.7rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(244, 234, 214, 0.82);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.site-header ul { margin-left: -0.7rem; }
.site-header li a:hover { color: #ffffff; border-bottom-color: rgba(217, 191, 140, 0.6); }
.site-header li a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--brass-light); }

@media (max-width: 40rem) {
  .site-header { padding-bottom: 0.6rem; }
  .site-header li a { padding: 0.5rem 0.8rem; margin-bottom: 0; }
  .site-header ul { margin-left: -0.8rem; }
}

/* Page content */
main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1.75rem;
}
/* A short brass rule under each page title. */
h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--brass);
}

p { margin: 0 0 1.15em; }

/* Photos sit in a white mat, like framed prints. */
.photo {
  margin: 2rem 0;
}
.photo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0.6rem;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(19, 32, 47, 0.08), 0 8px 24px rgba(19, 32, 47, 0.10);
}

.logo {
  float: left;
  max-width: 45%;
  height: auto;
  margin: 0.3rem 1.5rem 0.75rem 0;
}
@media (max-width: 30rem) {
  .logo { float: none; display: block; max-width: 100%; margin: 0 0 1rem; }
}

/* Keep the floated logo inside the article. */
article::after { content: ""; display: table; clear: both; }

/* Tim's video: full width, 16:9, with a plain link underneath for anyone the player doesn't load for. */
.video { margin: 2rem 0; }
.video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  box-shadow: 0 8px 24px rgba(19, 32, 47, 0.18);
}
.video figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer: every page, as the old site's footer listed them. */
.site-footer {
  background: var(--navy-deep);
  border-top: 3px solid var(--brass);
  color: var(--cream);
  padding: 2.25rem 1.25rem 2.75rem;
}
.site-footer nav {
  max-width: var(--measure);
  margin: 0 auto;
}
.site-footer ul { gap: 0.5rem 1.75rem; }
.site-footer a {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: rgba(244, 234, 214, 0.85);
  text-decoration-color: rgba(217, 191, 140, 0.45);
}
.site-footer a:hover { color: #ffffff; text-decoration-color: var(--brass-light); }
.site-footer a[aria-current="page"] { text-decoration: none; font-weight: 600; color: var(--brass-light); }

@media print {
  .site-header nav, .site-footer { display: none; }
  .site-header { background: none; border: 0; padding: 0; }
  .site-title { color: var(--navy); }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; }
  .photo img { box-shadow: none; }
}
