:root {
  --bg: #ffffff;
  --text: #101010;
  --muted: #4a4a4a;
  --border: #d7d7d7;
  --surface: #f6f6f6;
  --focus: #0b57d0;
}

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

html {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}

.wordmark {
  margin: 0;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand-emblem {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem 1rem;
}

.nav-list a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.nav-list a[aria-current="page"] {
  border-bottom-color: var(--text);
  font-weight: 600;
}

main {
  padding-block: 3rem;
}

.hero {
  padding-block: 1.25rem;
  margin-bottom: 1.25rem;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.panel ul {
  margin: 0;
  padding-left: 1rem;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
}

h2 {
  margin-top: 1rem;
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

p,
li {
  max-width: 70ch;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

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

.form-field {
  margin-bottom: 1rem;
}

.turnstile-wrap {
  margin-top: 0.5rem;
}

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

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.2rem;
  padding: 0.65rem 0.7rem;
  background: var(--bg);
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  border-radius: 0.2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.95;
}

.privacy-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.philosophy-figure {
  margin: 1.5rem 0 1rem;
  text-align: center;
}

.philosophy-figure img {
  width: min(100%, 32rem);
  height: auto;
  border: 1px solid var(--border);
  display: inline-block;
}

.relationship-site {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 48rem) {
  .header-inner {
    align-items: flex-start;
  }

  .nav-list {
    gap: 0.4rem 0.75rem;
  }
}
