/* ==========================================================================
   Ostmahorn — vakantiehuis Lauwersmeer, Friesland
   Plain, dependency-free CSS. No preprocessor, no external fonts, no build
   step required.
   ========================================================================== */

:root {
  --sand:      #f7f2e7;
  --ink:       #2a251e;
  --ink-soft:  #6b6154;
  --sea:       #1f5f74;
  --sea-tint:  #e4eef0;
  --reed:      #9c5b2a;
  --rule:      #e5dcc9;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

.container {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; border-radius: 8px; }

/* Typography ------------------------------------------------------------- */

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: 2.1rem; margin: 0 0 .3rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; color: var(--reed); }

p { margin: .5rem 0 1.1rem; }
em { color: var(--ink-soft); }
strong { font-weight: 700; }

/* Header ------------------------------------------------------------------ */

.site-header {
  padding: 2.2rem 24px 1.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-tag {
  display: block;
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

nav.site-nav {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

nav.site-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--sea);
  border: 1px solid var(--sea);
  border-radius: 999px;
  padding: .4rem 1rem;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  background: var(--sea);
  color: var(--sand);
  text-decoration: none;
}

nav.site-nav a.external {
  color: var(--reed);
  border-color: var(--reed);
}
nav.site-nav a.external:hover {
  background: var(--reed);
  color: var(--sand);
}

/* Main content -------------------------------------------------------------*/

main { padding-bottom: 2rem; }

figure { margin: 1.4rem 0; }
figure img { margin: 0 auto; }

figcaption {
  font-size: .85rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin-top: .6rem;
}

/* the historic engraving gets a slightly different, aged presentation */
figure.historic img {
  border: 1px solid var(--rule);
  box-shadow: 0 2px 10px rgba(42, 37, 30, 0.12);
}

iframe {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.note {
  font-size: .9rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--rule);
  padding-left: .9rem;
  margin: 1.5rem 0;
}

/* Tables --------------------------------------------------------------------*/

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.8rem;
  font-size: .95rem;
}

caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--ink);
}

th, td {
  padding: .55rem .75rem;
  text-align: center;
  border: 1px solid var(--rule);
}

th {
  background: var(--sea-tint);
  color: var(--ink);
  font-weight: 700;
}

td:first-child, th:first-child {
  text-align: left;
}

/* Footer -------------------------------------------------------------------*/

.site-footer {
  margin-top: 3rem;
  padding: 2rem 24px 3rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-soft);
  font-size: .95rem;
}

.site-footer a { font-weight: 600; }

/* Responsive -----------------------------------------------------------------*/

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  body { font-size: 16px; }
}

/* Print ------------------------------------------------------------------------*/

@media print {
  body { background: #fff; }
  nav.site-nav, .site-footer { display: none; }
}
