/* Celestial Anvil LLC — site styles. No external fonts or resources. */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1d2229;
  --muted: #555d68;
  --rule: #dcd8cf;
  --accent: #8a4b1f;
  --accent-strong: #6b3712;
  --focus: #1f5fbf;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1b1f26;
    --text: #e8e5df;
    --muted: #a7adb6;
    --rule: #2e343d;
    --accent: #e0a574;
    --accent-strong: #f0bd92;
    --focus: #8fb8ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: calc(var(--measure) + 3rem);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Accessibility helpers */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 4px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */

.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--accent);
  flex: none;
}

/* Typography */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.125rem, 6vw, 3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.375rem;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

/* Sections */

main > section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--rule);
}

main > section:last-child {
  border-bottom: 0;
}

.intro {
  padding-top: 4rem;
}

.lede {
  font-family: var(--serif);
  font-size: 1.3125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Activities list */

.activities {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.activities > div {
  padding: 1.125rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.activities dt {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.activities dd {
  margin: 0;
  color: var(--muted);
}

/* Links */

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

.button-link:hover {
  background: var(--surface);
}

address {
  font-style: normal;
}

.email {
  font-size: 1.1875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.25rem;
}

@media print {
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
