@font-face {
  font-family: Geist; src: url("/type/geist.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: Fraunces; src: url("/type/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  color-scheme: dark;
  --ground: #1b221d;
  --ground-deep: #161c18;
  --panel: #252e26;
  --ink: #f2f1e4;
  --muted: #bdc4b4;
  --green: #cadb83;
  --line: #546054;
  --cream: #e7ead3;
  --dark: #1f281d;
  --serif: Fraunces, Georgia, serif;
  --text: Geist, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.55 var(--text); }
a { color: inherit; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #d5a661; outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font: 600 3rem/1.02 var(--serif); letter-spacing: -.045em; }
p { max-width: 70ch; }
img { max-width: 100%; display: block; height: auto; }
.frame { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; z-index: 3; background: var(--cream); color: var(--dark); padding: .4rem .6rem; }
.skip:focus { top: 12px; }
.mast { background: var(--ground-deep); border-bottom: 1px solid var(--line); }
.mast nav { display: flex; justify-content: space-between; align-items: center; min-height: 65px; gap: 1rem; }
.mast nav div, .footer div { display: flex; align-items: center; gap: clamp(.6rem, 3vw, 1.5rem); }
.mast nav a { text-decoration: none; font-size: .85rem; }
.mast nav a:hover { text-decoration: underline; }
.logo { font-weight: 720; white-space: nowrap; }
.logo span { font-size: 1.07rem; color: var(--green); margin-right: .3rem; }

.intro { position: relative; isolation: isolate; min-height: 430px; display: flex; align-items: end; background: #313f2d; }
.intro::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #151b14eb 0%, #151b14bd 26%, #151b144d 47%, transparent 69%),
              linear-gradient(0deg, #151b147a, transparent 55%);
}
.intro img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 58%; }
.intro-text { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.1rem, 5vw, 3.8rem); }
.intro h1 { font-size: clamp(4.7rem, 11vw, 9.2rem); line-height: .88; }
.intro p { font-size: clamp(1rem, 2vw, 1.17rem); margin-block: 1rem; max-width: 35ch; color: #f0f0e6; }
.pill {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 1rem;
  padding: .58rem .95rem; border-radius: 99px; text-decoration: none; font-weight: 700;
  background: var(--green); color: #242916; font-size: .86rem; line-height: 1.35;
}
.pill:hover { text-decoration: underline; }
.pill.dark { background: var(--dark); color: var(--cream); }
.caps { text-transform: uppercase; font-size: .7rem; font-weight: 720; letter-spacing: .14em; }

.instrument {
  margin-top: 1.6rem; padding: clamp(1.05rem, 4vw, 2.9rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
}
.instrument-heading { display: flex; justify-content: space-between; align-items: end; gap: .52rem 2rem; margin-bottom: 1.3rem; }
.instrument-heading p { color: var(--green); margin-bottom: .25rem; }
.instrument h2, .walk h2, .notes h2 { font-size: clamp(2.3rem, 6vw, 4.15rem); }
.instrument-heading a { white-space: nowrap; font-size: .83rem; }
.controls { display: flex; gap: .65rem 1rem; flex-wrap: wrap; }
.controls label { display: block; font-weight: 650; font-size: .79rem; }
select {
  display: block; margin-top: .28rem; padding: .6rem .65rem; min-height: 44px; min-width: 172px; max-width: 100%;
  border: 1px solid #778075; border-radius: 3px; background: #1d261e; color: var(--ink);
}
.caption { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.months { margin-top: .66rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .32rem; }
.month-button {
  display: flex; flex-direction: column; align-items: center; justify-content: end; gap: .35rem;
  height: 112px; min-width: 0; padding: .38rem .13rem;
  border: 1px solid #495747; border-radius: 3px; background: #202820; color: var(--muted); font-size: .75rem;
}
.month-button:hover { border-color: var(--green); }
.month-button[aria-pressed="true"] { border-color: var(--green); background: #394431; color: var(--ink); font-weight: bold; }
.bar { display: block; width: 57%; height: calc(var(--level) * 6px); border-radius: 2px 2px 0 0; background: #819963; }
.month-button[aria-pressed="true"] .bar { background: var(--green); }
.level-0 { --level: 0; } .level-1 { --level: 1; } .level-2 { --level: 2; }
.level-3 { --level: 3; } .level-4 { --level: 4; } .level-5 { --level: 5; }
.level-6 { --level: 6; } .level-7 { --level: 7; } .level-8 { --level: 8; }
.level-9 { --level: 9; } .level-10 { --level: 10; } .level-11 { --level: 11; } .level-12 { --level: 12; }
.month-detail {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem;
  margin-top: .7rem; padding: 1rem; border: 1px solid #6d7e61; border-radius: 3px; background: #354231;
}
.month-detail .caps { color: var(--green); margin-bottom: .25rem; }
.month-detail h3 { font-size: clamp(1.75rem, 5vw, 3.05rem); }
#selected-count { color: #e0e5ce; font-size: .94rem; margin-top: .26rem; }
#year-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: .44rem; margin: 0; }
#year-counts > div { border-left: 1px solid #899382; padding-left: .5rem; min-width: 0; }
#year-counts dt { color: #d0d9c3; font-size: .75rem; }
#year-counts dd { margin: 0; font-size: clamp(.89rem, 2vw, 1.16rem); font-weight: 650; font-variant-numeric: tabular-nums; }
.limits, details p { font-size: .82rem; color: var(--muted); margin-top: .75rem; }
details { margin-top: .76rem; }
summary { cursor: pointer; width: fit-content; color: var(--ink); font-size: .86rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-top: .55rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
table caption { text-align: left; color: var(--muted); padding-bottom: .38rem; }
th, td { border-bottom: 1px solid var(--line); padding: .38rem .42rem; text-align: right; }
th:first-child { text-align: left; }
tr:nth-child(even) td, tr:nth-child(even) th { background: #2d382c; }

.walk {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.2rem 2.5rem; margin-top: clamp(2.5rem, 7vw, 5.2rem);
  padding: clamp(1rem, 4.5vw, 3.2rem); background: var(--cream); color: var(--dark); color-scheme: light; border-radius: 4px;
}
.walk .caps { color: #435537; margin-bottom: .3rem; }
.walk-side > p:not(.caps) { margin-block: .7rem 1.04rem; max-width: 39ch; }
.shot-list { border-top: 1px solid #a0a68d; }
.shot-list label {
  display: flex; gap: .74rem; padding-block: .68rem; border-bottom: 1px solid #a0a68d; font-size: .87rem; cursor: pointer;
}
.shot-list strong { display: block; }
.shot-list input { width: 1.12rem; height: 1.12rem; margin: .12rem 0; flex: none; accent-color: #435537; }
.shot-list a { display: inline-block; margin-top: .72rem; font-size: .86rem; }
#progress { font-size: .79rem; color: #49543d; margin-top: .42rem; }
.notes { margin-top: clamp(2.5rem, 7vw, 5.2rem); }
.notes ul { padding: 0; margin: 1rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.notes a {
  display: grid; grid-template-columns: minmax(114px, .3fr) minmax(0, 1.7fr) auto; align-items: center; gap: .55rem;
  padding: .77rem 0; text-decoration: none; border-bottom: 1px solid var(--line);
}
.notes a:hover span { text-decoration: underline; }
.notes a span { color: var(--muted); font-size: .88rem; }
.notes a i { font-style: normal; color: var(--green); }
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .45rem 1rem;
  margin-top: 2.2rem; padding-block: 1.08rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem;
}

.article { max-width: 800px; padding-block: clamp(1.5rem, 6vw, 4.9rem) .3rem; }
.article .back { display: inline-block; margin-bottom: 1.2rem; font-size: .87rem; }
.article .caps { color: var(--green); margin-bottom: .48rem; }
.article h1 { font-size: clamp(3.35rem, 8vw, 6.6rem); }
.article .lede { margin-top: .9rem; font-size: 1.17rem; color: var(--muted); }
.article p + p { margin-top: .66rem; }
.article h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); margin: 1.6rem 0 .56rem; }
.article .fact { background: var(--cream); color: var(--dark); border-radius: 4px; margin-block: 1.4rem; padding: clamp(1rem, 4vw, 1.6rem); }
.article .fact h2 { margin-top: 0; }
.article .pill { margin-top: 1rem; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 38px); }
  .intro { min-height: 390px; }
  .intro img { object-position: 54% 54%; }
  .intro::after { background: linear-gradient(0deg, #131912eb 4%, #151b14ba 31%, #151b1452 63%, #151b141f); }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .34rem; }
  .month-button { height: 83px; }
  .bar { height: calc(var(--level) * 4px); }
  .walk { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .frame { width: calc(100% - 28px); }
  .mast nav { min-height: 60px; gap: .52rem; }
  .mast nav a { font-size: .73rem; }
  .mast nav div { gap: .55rem; }
  .intro h1 { font-size: clamp(4.25rem, 17vw, 5.5rem); }
  .intro-text { padding-bottom: 1.6rem; }
  .intro img { object-position: 53% 50%; }
  .instrument-heading { flex-direction: column; align-items: start; }
  .controls { display: grid; grid-template-columns: 1fr; }
  .controls select { width: 100%; }
  .month-detail { grid-template-columns: 1fr; }
  .notes a { grid-template-columns: minmax(81px, .65fr) minmax(0, 1.35fr) auto; }
}
