:root {
  --ivoire: #F2EDE4;
  --ebene: #16130F;
  --laiton: #B08D57;
  --bois: #D7C4A3;
  --feutre: #7A2E2E;
  --hairline: rgba(22, 19, 15, .15);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-data: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--ebene);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.site-header__logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ebene);
}

.site-header__nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.site-header__nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-header__nav a:hover {
  border-bottom-color: var(--laiton);
}

/* Hero */

.hero {
  background:
    linear-gradient(100deg, rgba(22, 19, 15, .92) 0%, rgba(22, 19, 15, .72) 40%, rgba(22, 19, 15, .35) 75%),
    url("/images/heroGuide-Piano.jpg") center center / cover no-repeat;
}

.hero__inner {
  padding: 96px 24px 104px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-data);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--laiton);
  margin: 0 0 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  max-width: 16ch;
  color: var(--ivoire);
}

.hero__lede {
  font-size: 19px;
  max-width: 52ch;
  color: rgba(242, 237, 228, .85);
  margin: 0 0 36px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 0;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--laiton);
  color: var(--ivoire);
}

.btn--primary:hover {
  background: var(--ebene);
}

.btn--ghost {
  border-color: var(--ebene);
  color: var(--ebene);
  margin-left: 12px;
}

.btn--ghost:hover {
  background: var(--ebene);
  color: var(--ivoire);
}

.btn--ghost-dark {
  border-color: var(--ivoire);
  color: var(--ivoire);
}

.btn--ghost-dark:hover {
  background: var(--ivoire);
  color: var(--ebene);
}

/* Key rail — signature element */

.key-rail {
  display: flex;
  height: 14px;
  margin: 0;
}

.key-rail__seg {
  flex: 1 1 auto;
  background: var(--bois);
  transition: background .5s ease;
  border-right: 2px solid var(--ivoire);
}

.key-rail__seg:last-child { border-right: none; }

/* widths approximate a black-key grouping rhythm: 2 narrow, 3 narrow, separated by wider gaps */
.key-rail__seg--wide { flex-grow: 2.4; background: var(--ebene); }
.key-rail__seg--narrow { flex-grow: 1; background: var(--bois); }

.key-rail__seg.is-active {
  background: var(--laiton) !important;
}

/* Sections */

.section {
  padding: 72px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.section--tight {
  max-width: 760px;
}

.section--dark {
  background: var(--ebene);
  color: var(--ivoire);
  max-width: none;
  padding: 72px 24px;
}

.section--dark .section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-data);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--laiton);
  margin: 0 0 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 24px;
  max-width: 20ch;
}

.angle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 40px;
}

.angle-card {
  background: var(--ivoire);
  padding: 32px 28px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background .2s ease;
}

.angle-card:hover {
  background: var(--bois);
}

.angle-card__label {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--laiton);
  margin: 0 0 14px;
}

.angle-card h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.angle-card p {
  font-size: 15px;
  color: rgba(22, 19, 15, .75);
  margin: 0;
}

.method-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--hairline);
}

.method-list li {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.method-list__mark {
  font-family: var(--font-data);
  color: var(--laiton);
  flex: 0 0 auto;
}

/* Breadcrumb */

.breadcrumb {
  font-family: var(--font-data);
  font-size: 13px;
  color: rgba(22, 19, 15, .55);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: rgba(22, 19, 15, .55);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--laiton);
}

.breadcrumb span[aria-hidden] {
  margin: 0 8px;
}

.breadcrumb span[aria-current] {
  color: var(--ebene);
}

/* Article content (markdown-rendered) */

article :is(h2, h3) {
  font-family: var(--font-body);
  font-weight: 600;
}

article h2 { font-size: 24px; margin: 44px 0 16px; }
article h3 { font-size: 19px; margin: 32px 0 12px; }
article p { margin: 0 0 18px; }

.section--tight ul:not(.method-list) {
  margin: 0 0 18px;
  padding-left: 22px;
}

.section--tight ul:not(.method-list) li {
  margin-bottom: 8px;
}

.section--tight a {
  color: var(--laiton);
}

.section--tight a:hover {
  color: var(--ebene);
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

article th, article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-data);
}

article th {
  font-family: var(--font-body);
  font-weight: 600;
  border-bottom: 2px solid var(--ebene);
}

article td:first-child, article th:first-child {
  font-family: var(--font-body);
}

article a {
  color: var(--laiton);
  text-decoration-thickness: 1px;
}

article a:hover { color: var(--ebene); }

article figure {
  margin: 32px 0;
}

article img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bois);
  border: 1px solid var(--hairline);
}

article figcaption {
  font-family: var(--font-data);
  font-size: 13px;
  color: rgba(22, 19, 15, .6);
  margin-top: 8px;
}

article hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 40px 0 24px;
}

article em {
  color: rgba(22, 19, 15, .65);
  font-size: 14px;
}

/* Footer */

.site-footer {
  background: var(--ebene);
  color: var(--ivoire);
  padding: 56px 24px 32px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  font-family: var(--font-data);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--laiton);
  margin: 0 0 16px;
}

.site-footer p {
  font-size: 14px;
  color: rgba(242, 237, 228, .7);
  max-width: 40ch;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 10px; }

.site-footer a {
  color: var(--ivoire);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover { color: var(--laiton); }

.site-footer__legal {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 237, 228, .15);
  font-size: 13px;
  color: rgba(242, 237, 228, .5);
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .angle-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .btn--ghost { margin-left: 0; margin-top: 12px; display: block; width: fit-content; }
}
