/* Hewill Augh: the brand's paper, ink and brick red, with the fonts of the books and charts */
@font-face { font-family: "Caladea"; font-weight: 700; font-display: swap;
  src: url(fonts/caladea-bold.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url(fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url(fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "HA Symbols"; font-weight: 100 900; font-display: swap;
  src: url(fonts/symbols.woff2) format("woff2"); unicode-range: U+266D, U+266F; }

:root {
  --paper: #fbe6d4;
  --paper-deep: #fcd9bd;
  --paper-edge: #efc6a4;
  --ink: #3e3522;
  --ink-soft: #6b5a44;
  --brick: #9c4a2a;
  --brick-deep: #7d3a20;
  --cream: #fff6ea;
  --sans: "Poppins", "HA Symbols", system-ui, sans-serif;
  --serif: "Caladea", "HA Symbols", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .13 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
h1, h2, h3, h4 { text-wrap: balance; }

/* ---------------------------------------------------------------- header and hero */
.hero { background: var(--paper-deep) var(--grain); border-bottom: 1px solid var(--paper-edge);
  padding-bottom: clamp(40px, 6vw, 72px); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--ink); font: 700 1.6rem/1 var(--serif); }
.brand:hover { color: var(--ink); }
.brand img { width: 56px; height: auto; display: block; }
.site-head nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.site-head nav a { font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--brick); }
.site-head nav .to-shop { color: var(--brick); border: 1.5px solid currentColor;
  border-radius: 999px; padding: 6px 16px; }

h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem); line-height: 1.02;
  letter-spacing: -.012em; margin: clamp(20px, 5vw, 56px) 0 18px; max-width: 12em; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 34em; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 500 1rem/1 var(--sans); text-decoration: none; }
.btn-main { background: var(--brick); color: var(--cream); }
.btn-main:hover { background: var(--brick-deep); color: var(--cream); }
.btn-quiet { border: 1.5px solid var(--brick); color: var(--brick); }

/* ---------------------------------------------------------------- the neck */
.neck { margin: clamp(32px, 5vw, 56px) 0 0; outline: none; }
.neck:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }
.neck-svg { display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 14px 14px rgba(62, 53, 34, .26)); }
.neck-v { display: none; }
@media (max-width: 640px) {
  .neck-h { display: none; }
  .neck-v { display: block; max-width: 400px; margin: 0 auto; }
}
.neck-svg .grain { stroke: #2b1b0f; stroke-opacity: .2; stroke-width: 1; }
.neck-svg .inlay { fill: #efe2cc; opacity: .7; }
.neck-svg .fret { stroke: #cfa765; stroke-width: 3; stroke-linecap: round; }
.neck-svg .nut { fill: #f1e6d0; }
.neck-svg .string { stroke: #efe3cf; stroke-linecap: round; }
.neck-svg .string-shadow { stroke: #1d120a; stroke-opacity: .5; stroke-linecap: round; }
.neck-svg text { text-anchor: middle; font-family: var(--sans); }
.neck-svg .label, .neck-svg .num { font-weight: 500; font-size: 12.5px; fill: var(--ink-soft); }
.neck-svg .num { font-size: 11px; }
.neck-svg .label-board { fill: #efe3cf; }
.neck-svg .dot { fill: var(--cream); stroke: rgba(62, 53, 34, .55); stroke-width: 1; }
.neck-svg .dot.root { fill: var(--brick); stroke: #f6dcc4; stroke-width: 1.5; }
.neck-svg .dot.blue { fill: #b9d5dc; }
.neck-svg .note { font-weight: 700; font-size: 12.5px; fill: var(--ink); }
.neck-svg .note-root { fill: var(--cream); }
.neck-v .neck-svg .note { font-size: 12px; }
.neck-svg .d { transform-box: fill-box; transform-origin: center; }
.neck.first-run .d { animation: note-in .42s cubic-bezier(.2, .9, .3, 1.25) both;
  animation-delay: calc(var(--i) * 55ms + 200ms); }
.neck.changed .d { animation: note-fade .2s ease-out both; }
@keyframes note-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes note-fade { from { opacity: 0; } to { opacity: 1; } }

.controls { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 18px 28px; }
html:not(.js) .controls, html:not(.js) [data-show] { display: none; }
.ctl { display: flex; flex-direction: column; gap: 6px; }
.ctl > span, .keys-label { font-weight: 500; font-size: .88rem; color: var(--ink-soft); }
.ctl select { appearance: none; -webkit-appearance: none; font: 500 1rem var(--sans);
  color: var(--ink); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233e3522' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid #d6b190; border-radius: 10px; min-height: 46px; padding: 0 40px 0 14px;
  max-width: 100%; }
.ctl select:hover { border-color: var(--brick); }
.keys { width: 100%; }
.keys-row { display: grid; grid-template-columns: repeat(12, 42px); gap: 8px; margin-top: 6px; }
.keys button { width: 42px; height: 42px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 1.5px solid rgba(62, 53, 34, .5);
  font: 700 .92rem/1 var(--sans); }
.keys button:hover { border-color: var(--brick); }
.keys button[aria-pressed="true"] { background: var(--brick); border-color: var(--brick);
  color: var(--cream); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  min-height: 46px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: #d9bba0;
  position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px;
  height: 20px; border-radius: 50%; background: var(--cream); transition: transform .2s;
  box-shadow: 0 1px 2px rgba(62, 53, 34, .35); }
.switch input:checked + .track { background: var(--brick); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--ink); outline-offset: 3px; }
.neck-caption { margin: 22px 0 0; font-size: 1rem; }
.neck-caption .formula { color: var(--ink-soft); }
.root-key { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft);
  font-size: .92rem; margin: 4px 0 0; }
.root-key::before { content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brick); }
@media (max-width: 640px) {
  .keys-row { grid-template-columns: repeat(6, 42px); }
  .ctl, .ctl select { width: 100%; }
}

/* ---------------------------------------------------------------- catalogue */
.catalogue { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1.08; margin: 0 0 12px; }
.intro { color: var(--ink-soft); max-width: 36em; margin: 0; }
.family { display: grid; grid-template-columns: 170px 1fr; gap: 24px;
  border-top: 1px solid var(--paper-edge); margin-top: 44px; padding-top: 28px; }
.family h3 { font-size: 1.7rem; line-height: 1.1; margin: 0; }
.products { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 40px 28px; }
.product .cover { display: flex; align-items: flex-end; aspect-ratio: 1 / 1.414;
  margin-bottom: 16px; }
.product .cover img { display: block; width: 100%; height: auto; background: #fff;
  border-radius: 2px; box-shadow: 0 1px 1px rgba(62, 53, 34, .2),
  0 12px 18px -8px rgba(62, 53, 34, .45); transition: transform .2s ease; }
.product .cover:hover img { transform: translateY(-3px); }
.product h4 { font: 700 1.14rem/1.22 var(--serif); margin: 0 0 6px; }
.product p { font-size: .92rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 10px; }
.product .buy { font-weight: 500; font-size: .95rem; }
.soon { margin: 40px 0 0; color: var(--ink-soft); }
@media (max-width: 720px) {
  .family { grid-template-columns: 1fr; gap: 18px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
}

/* ---------------------------------------------------------------- points and making */
.points-section { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--paper-edge); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.points h3 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 6px; }
.points p { margin: 0; max-width: 34em; }
.show { margin-top: 12px; font: 500 .95rem var(--sans); color: var(--brick);
  background: transparent; border: 1.5px solid var(--brick); border-radius: 999px;
  min-height: 40px; padding: 0 18px; cursor: pointer; }
.show:hover { background: var(--brick); color: var(--cream); }
.made p { margin: 0; max-width: 34em; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--paper-deep) var(--grain); border-top: 1px solid var(--paper-edge);
  padding: clamp(40px, 6vw, 64px) 0 36px; }
.foot { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px;
  align-items: center; }
.foot img { width: 220px; height: auto; display: block; }
.foot p { margin: 0 0 12px; max-width: 34em; }
.foot ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 8px 24px; font-weight: 500; }
.small { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; justify-items: start; }
  .foot img { width: 180px; }
  .site-head nav .hide-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .neck .d { animation: none !important; }
  .product .cover img, .switch .track, .switch .track::after { transition: none; }
}
