:root {
  --bg: #f7f6f2;
  --text: #28251d;
  --text-secondary: #5c574d;
  --accent: #da7101;
  --border: #e8e6df;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --text: #cdccca;
    --text-secondary: #9a9894;
    --accent: #fdab43;
    --border: #2e2c28;
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: none;
}

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

.site-header-inner-thin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + 4rem);
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.meta {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.link-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.link-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
}

.link-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.link-card span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.contact-box {
  background: color-mix(in srgb, var(--border) 35%, transparent);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

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

  .site-header-inner-thin {
    flex-direction: column;
    align-items: flex-start;
  }
}
