:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #18201f;
  --muted: #5e6864;
  --line: #d8d3c7;
  --accent: #0f6f5c;
  --accent-strong: #0b4f43;
  --blue: #245b8a;
  --rust: #9b4d28;
  --shadow: 0 20px 60px rgba(31, 42, 39, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24, 32, 31, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(24, 32, 31, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 211, 199, 0.82);
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: grid;
  gap: 2px;
}

.wordmark span {
  font-weight: 750;
}

.wordmark small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.site-footer button:hover {
  color: var(--ink);
}

.palette-trigger,
.site-footer button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 8px 10px;
}

kbd {
  border: 1px solid #c9c2b5;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
  padding: 4px 6px;
}

.section-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 11px 16px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 32px);
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(15, 111, 92, 0.12);
}

.signal-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.signal-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.signal-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
  color: #36413e;
  padding: 10px;
  font-size: 0.88rem;
}

.command-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.command-intro p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: 24px;
}

.project-tag {
  width: fit-content;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(36, 91, 138, 0.12);
  color: var(--blue);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 760;
}

.project-card p,
.timeline p,
.tool-columns p,
.contact h2 {
  color: var(--muted);
  line-height: 1.58;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-left: 18px;
  color: #394440;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  border-left: 3px solid var(--accent);
  background: rgba(255, 253, 248, 0.72);
  padding: 4px 0 18px 20px;
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 0.84rem;
  font-weight: 740;
}

.toolkit {
  border-top: 1px solid var(--line);
}

.tool-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-columns div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 56px);
  color: var(--muted);
}

.palette-shell[hidden] {
  display: none;
}

.palette-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
}

.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 31, 0.38);
  backdrop-filter: blur(6px);
}

.command-palette {
  position: relative;
  width: min(640px, calc(100% - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.palette-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.palette-search span {
  color: var(--accent);
  font-weight: 900;
}

.palette-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

.palette-list {
  max-height: min(430px, 58vh);
  overflow-y: auto;
  padding: 8px;
}

.command-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.command-item:hover,
.command-item[aria-selected="true"] {
  background: #edf3ee;
}

.command-item strong {
  display: block;
  margin-bottom: 3px;
}

.command-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.command-item code {
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.palette-hint {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 16px;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  transform: translateY(20px);
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 12px 14px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links a {
    display: none;
  }

  .hero,
  .command-intro,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-grid,
  .tool-columns {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .section-band {
    width: min(100% - 28px, 1120px);
    padding: 58px 0;
  }

  .site-header {
    padding: 14px;
  }

  .wordmark small {
    display: none;
  }

  .palette-trigger span {
    display: none;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }
}
