/* Template typography and layout, with a permanent white background. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-soft: #000000;
  --line: #e2e2e2;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --sans: Arial, Helvetica, sans-serif;
  --measure: 42rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding: 3rem 0 5rem;
  flex: 1;
}

header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: 80px;
  height: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--accent);
}

nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

h1 {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

/* Optional responsive video/iframe embeds; see README.md for usage. */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 2rem 0;
  overflow: hidden;
  background: var(--paper);
}

.embed iframe,
.embed video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  body {
    font-size: 1.05rem;
  }

  h1 {
    font-size: 1.7rem;
  }
}
