:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #1b2a2e;
  --muted: #5a686c;
  --header: #17303a;
  --header-text: #f7f4ee;
  --accent: #2e5e57;
  --accent-hover: #244c47;
  --line: #d8d2c8;
  --error: #7a2e2e;
  --ok: #1e4d3c;
  --focus: #c4a35a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  color: var(--header-text);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.brand {
  color: var(--header-text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus-visible {
  color: #ffffff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--header-text);
  text-decoration: none;
  border: 1px solid rgba(247, 244, 238, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.hero {
  padding: 0.5rem 0 1.5rem;
}

h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1rem;
}

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

p {
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.lead {
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
}

.affiliation {
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  margin: 1.75rem 0;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-inner a {
  color: var(--accent);
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
}

form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #b9b3a8;
  border-radius: 4px;
}

input:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  margin: 0 0 1.25rem;
}

.notice-ok {
  background: #e8f3ee;
  border-color: #b7d2c7;
  color: var(--ok);
}

.notice-error {
  background: #f8ecec;
  border-color: #e0c4c4;
  color: var(--error);
}

.required {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .site-nav a {
    padding: 0.8rem 1rem;
  }
}
