@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #151515;
  --text: #303030;
  --muted: #575757;
  --line: #dedede;
  --accent: #242424;
  --primary: #202020;
  --primary-text: #fff;
  --tint: #f3f3f3;
  --heading-font: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body-font: Inter, system-ui, sans-serif;
  --mono-font: ui-monospace, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #161616;
  --foreground: #f6f6f6;
  --text: #dedede;
  --muted: #bebebe;
  --line: #484848;
  --accent: #e7e7e7;
  --primary: #ededed;
  --primary-text: #1a1a1a;
  --tint: #252525;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.75 var(--body-font);
}

h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3 { color: var(--foreground); font-family: var(--heading-font); line-height: 1.14; }
h1 { font-size: clamp(2.3rem, 5.7vw, 3.55rem); font-weight: 730; letter-spacing: -0.047em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); letter-spacing: -0.022em; }
h3 { font-size: 1.16rem; letter-spacing: -0.014em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(712px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1; inset: 10px auto auto 10px; transform: translateY(-150%); background: var(--background); padding: 0.5rem 1rem; }
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.wordmark { margin-right: auto; color: var(--foreground); font: 700 1.05rem var(--heading-font); text-decoration: none; white-space: nowrap; }
.wordmark:hover { text-decoration: underline; }
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem clamp(0.75rem, 3vw, 1.45rem); }
.nav a { color: var(--muted); padding-block: 0.3rem; font: 0.84rem var(--mono-font); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-controls { display: flex; flex-shrink: 0; align-items: center; gap: 0.55rem; }
.header-controls:not(:has(> :not([hidden]))) { display: none; }
.theme-toggle, .language-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--foreground); }
.theme-toggle:hover, .language-toggle:hover { background: var(--tint); }
.language-toggle { font: 600 0.78rem var(--mono-font); border-radius: 6px; text-decoration: none; }
.theme-icon { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: inset -4px -2px 0 0 currentColor; }
[data-theme="dark"] .theme-icon { box-shadow: 0 -8px 0 -4px, 0 8px 0 -4px, 8px 0 0 -4px, -8px 0 0 -4px; }

.inner-page { padding-block: clamp(2.7rem, 7vw, 5rem) 4rem; overflow-wrap: anywhere; }
.home article { font-size: 1.06rem; }
.greeting-emoji { font-size: 0.66em; vertical-align: 0.08em; }
.home blockquote { margin-block: 1.65rem 1.9rem; border-left: 3px solid var(--accent); padding: 0.5rem 1rem; background: var(--tint); font-size: 1rem; font-style: italic; }
.intro-copy p + p { margin-top: 1.15rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1.35rem; margin: 1.8rem 0 0; padding: 0; font-size: 0.91rem; font-weight: 600; list-style: none; }

.page-heading { display: grid; gap: 0.7rem; }
.lede { font-size: 1.08rem; line-height: 1.6; }
.meta { color: var(--muted); font-size: 0.86rem; }
.page-section { margin-top: 2.15rem; }
.page-section h2 { margin-bottom: 0.65rem; }
.page-section h3 + p, .page-section p + p { margin-top: 0.5rem; }
.page-section .subheading { margin-top: 0.85rem; }
.detail-list { margin: 0.55rem 0 0; padding-inline-start: 1.25rem; }
.detail-list li + li { margin-top: 0.25rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--background); color: var(--foreground); font-size: 0.87rem; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--tint); }
.button.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-text); }
.button.primary:hover { border-color: var(--foreground); background: var(--foreground); color: var(--background); }

.feedback-form { display: grid; gap: 0.5rem; align-items: start; margin-block: 1.35rem; }
.feedback-form label { color: var(--foreground); font-size: 0.91rem; font-weight: 650; }
.feedback-form .field-note { color: var(--muted); font-weight: 400; }
.feedback-form input, .feedback-form textarea { width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--muted); border-radius: 5px; background: var(--background); }
.feedback-form textarea { resize: vertical; }
.feedback-form input + label { margin-top: 0.45rem; }
.feedback-form button { justify-self: start; margin-top: 0.45rem; }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1rem 1.4rem; margin-top: auto; color: var(--muted); font: 0.75rem/1.5 var(--mono-font); }

@media (max-width: 470px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { gap: 0.55rem 0.75rem; padding-block: 0.9rem 0.65rem; }
  .nav { order: 1; width: 100%; gap: 0.25rem 0.8rem; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .home article { font-size: 1rem; }
}

