:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #596a64;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d8ded9;
  --accent: #0b6b5e;
  --accent-strong: #074d46;
  --gold: #b56b21;
  --blue: #315f8c;
  --rose: #a34b57;
  --shadow: 0 18px 40px rgba(23, 33, 31, 0.08);
  --radius: 8px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.25rem, 4rem, 4.25rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 2rem, 2.25rem);
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

p {
  color: var(--muted);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 14rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #eef3ef;
  color: var(--accent-strong);
}

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 3rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.intro {
  max-width: 62ch;
  font-size: 1.08rem;
}

.eyebrow,
.tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

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

.button:hover,
.button:focus {
  border-color: var(--gold);
  background: #fff8ef;
  color: var(--accent-strong);
}

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

.profile-panel,
.item-card,
.tutorial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 1.25rem;
}

.portrait {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 107, 94, 0.95), rgba(49, 95, 140, 0.9)),
    #0b6b5e;
  color: #fff;
  overflow: hidden;
}

.portrait span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
}

.quick-facts {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.quick-facts dd {
  margin: 0;
  font-weight: 700;
}

.section-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-band.alt {
  background: #f2f6f3;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 5vw, 3rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-card,
.tutorial-card {
  overflow: hidden;
}

.item-card {
  padding: 1rem;
}

.item-card p,
.tutorial-card p,
.link-item p,
.post-row p {
  margin-bottom: 0.75rem;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--line);
  background-color: #e8eee9;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.35) 50% 75%, transparent 75%),
    linear-gradient(135deg, rgba(11, 107, 94, 0.84), rgba(181, 107, 33, 0.72));
  background-size: 56px 56px, auto;
}

.thumb-b {
  background-image:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.82) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(49, 95, 140, 0.84), rgba(11, 107, 94, 0.7));
}

.thumb-c {
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 2px, transparent 2px),
    linear-gradient(135deg, rgba(163, 75, 87, 0.82), rgba(181, 107, 33, 0.72));
  background-size: 42px 42px, 42px 42px, auto;
}

.post-list {
  display: grid;
  gap: 0.75rem;
}

.post-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.post-row time {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-row h3 a,
.link-item h3 a {
  color: var(--ink);
}

.link-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.link-item {
  min-height: 210px;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.link-item:last-child {
  border-right: 0;
}

.tutorial-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 1rem;
}

.video-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, rgba(23, 33, 31, 0.84), rgba(49, 95, 140, 0.82)),
    var(--blue);
}

.video-box.guide {
  background:
    linear-gradient(135deg, rgba(23, 33, 31, 0.82), rgba(163, 75, 87, 0.78)),
    var(--rose);
}

.play {
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 34px solid #fff;
  transform: translateX(4px);
}

.steps {
  width: 78px;
  height: 62px;
  border-top: 10px solid #fff;
  border-bottom: 10px solid #fff;
  box-shadow: 0 21px 0 #fff;
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  color: #dbe3df;
  margin-bottom: 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: #fff;
}

@media (max-width: 900px) {
  .header-grid,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero-grid,
  .content-grid,
  .card-grid.three,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 520px;
  }

  .link-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-item:nth-child(2) {
    border-right: 0;
  }

  .link-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 1rem, var(--wrap));
  }

  .site-header {
    position: static;
  }

  .header-grid {
    min-height: 0;
    padding: 0.75rem 0;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    max-width: 100%;
    font-size: 2.35rem;
  }

  .quick-facts div,
  .post-row,
  .tutorial-card,
  .link-board {
    grid-template-columns: 1fr;
  }

  .post-row {
    gap: 0.35rem;
  }

  .link-item,
  .link-item:nth-child(2) {
    border-right: 0;
  }

  .link-item:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
