:root {
  --color-canvas: #f7f4ee;
  --color-surface: #ffffff;
  --color-surface-muted: #ebe7dd;
  --color-ink: #18201d;
  --color-muted: #5d6862;
  --color-border: #d5d0c5;
  --color-accent: #006d77;
  --color-accent-strong: #004d54;
  --color-warm: #b94f2d;
  --shadow-soft: 0 18px 48px rgba(24, 32, 29, 0.1);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  min-width: 320px;
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(213, 208, 197, 0.9);
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
}

.site-brand {
  font-weight: 750;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--color-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-ink);
  background: var(--color-surface-muted);
}

.site-nav a.is-active {
  font-weight: 700;
}

.hero {
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(9, 26, 29, 0.88), rgba(9, 26, 29, 0.56) 48%, rgba(9, 26, 29, 0.18)),
    url("../img/hero-workspace.png") center / cover no-repeat,
    #12343a;
}

.hero__inner {
  padding: 76px 0 92px;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 5rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__lead,
.page-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-section {
  padding: 72px 0;
}

.page-section--muted {
  background: var(--color-surface-muted);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.prose h2,
.side-panel h2,
.contact-form h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd8c8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: #ffffff;
  background: var(--color-accent);
}

.button--primary:hover {
  color: #ffffff;
  background: var(--color-accent-strong);
}

.button--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.button--secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.button--ghost {
  color: var(--color-accent-strong);
  border-color: var(--color-border);
  background: var(--color-surface);
}

.button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.news-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-list time {
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.chip-list,
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list {
  margin-bottom: 28px;
}

.filter-chip,
.tech-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.filter-chip {
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  background: var(--color-surface);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
  color: #ffffff;
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.tech-chip {
  color: var(--color-accent-strong);
  background: rgba(0, 109, 119, 0.12);
}

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

.work-card,
.side-panel,
.contact-form,
.notice {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.work-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.work-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.work-card__summary {
  margin: 0;
  color: var(--color-muted);
}

.work-card__period {
  margin: auto 0 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.62);
}

.content-layout,
.contact-layout {
  display: grid;
  align-items: start;
  gap: 32px;
}

.content-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.contact-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.prose {
  max-width: 720px;
}

.prose h2:not(:first-child) {
  margin-top: 40px;
}

.prose p,
.prose ul {
  color: var(--color-muted);
}

.side-panel,
.notice,
.contact-form {
  padding: 24px;
}

.skill-list {
  display: grid;
  gap: 18px;
  margin: 20px 0 0;
}

.skill-list div {
  display: grid;
  gap: 4px;
}

.skill-list dt {
  color: var(--color-ink);
  font-weight: 800;
}

.skill-list dd {
  margin: 0;
  color: var(--color-muted);
}

.notice {
  border-left: 5px solid var(--color-accent);
}

.notice p {
  margin: 0 0 10px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--color-ink);
  background: #f4f1eb;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-ink);
  color: #ffffff;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

.social-icon {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 820px) {
  .site-header__inner,
  .site-footer__inner,
  .section-heading--split {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero {
    min-height: 420px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.4rem;
  }

  .works-grid,
  .content-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .notice {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .site-header__inner {
    width: min(100% - 24px, var(--max-width));
  }

  .site-header__inner {
    gap: 12px;
    min-height: 86px;
    padding: 12px 0;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .hero__inner,
  .page-hero {
    padding: 52px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.6rem;
  }

  .page-section {
    padding: 52px 0;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
