@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #f7f4ee;
  --fg: #181614;
  --muted: #5f5850;
  --line: #ddd5c8;
  --card: #ffffff;
  --accent: #e8502f;
  --t-dsplay: #181614;
  --t-dsplay-fg: #f7f4ee;
  --t-daltix: #cfe3d6;
  --t-music: #f4d16a;
  --t-code: #d8d2f5;
  --t-family: #f9cfc0;
  --t-screen: #22304f;
  --t-screen-fg: #f1ece3;
  --t-magic: #f1c4dc;
  --t-food: #f8dba6;
  --t-fit: #bfe2e8;
  --t-animals: #cfe5bf;
  --t-beliefs: #c63a1b;
  --t-beliefs-fg: #fff7f0;
  --tile-fg: #181614;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e;
    --fg: #f1ece3;
    --muted: #a39a8e;
    --line: #2d2823;
    --card: #1b1815;
    --accent: #ff7a59;
    --t-dsplay: #f1ece3;
    --t-dsplay-fg: #181614;
    --t-daltix: #223a2d;
    --t-music: #5a4710;
    --t-code: #2c2750;
    --t-family: #4a2a20;
    --t-screen: #2b3d63;
    --t-screen-fg: #f1ece3;
    --t-magic: #4a2540;
    --t-food: #4d3a14;
    --t-fit: #1e3d42;
    --t-animals: #2c4222;
    --t-beliefs: #8f2a14;
    --t-beliefs-fg: #fff2ea;
    --tile-fg: #f1ece3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin-inline: auto; padding: 0 20px; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  font: 600 15px/1 var(--display);
  letter-spacing: 0.02em;
}
.bar a { text-decoration: none; }
.lang { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.lang a, .lang span { padding: 7px 13px; border-radius: 999px; font-size: 13px; }
.lang span { background: var(--fg); color: var(--bg); }
.lang a:hover { color: var(--accent); }

.hero { padding-block: 24px 24px; }
.hero h1 { margin: 0; font: 700 clamp(40px, 6.4vw, 68px)/1 var(--display); letter-spacing: -0.03em; }
.hero h1 .n { display: block; }
.hero h1 .i { color: var(--accent); font-weight: 800; }
.hero .side { margin-top: 22px; }
.tagline {
  margin: 12px 0 0;
  max-width: 34ch;
  font: 500 clamp(19px, 2.8vw, 24px)/1.3 var(--display);
  color: var(--muted);
}
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.facts li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 600; }

.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; padding-block: 28px 36px; }
.about p { margin: 0; font-size: 18px; }
.about p + p { padding-left: 22px; border-left: 4px solid var(--accent); font: 500 clamp(19px, 2.3vw, 22px)/1.45 var(--display); letter-spacing: -0.005em; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding-bottom: 16px; }
.tile {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--tile-fg);
}
.tile.dsplay { grid-column: span 4; background: var(--t-dsplay); color: var(--t-dsplay-fg); border-color: transparent; }
.tile.daltix { grid-column: span 2; background: var(--t-daltix); border-color: transparent; }
.tile.music  { grid-column: span 4; background: var(--t-music); border-color: transparent; }
.tile.code   { grid-column: span 2; background: var(--t-code); border-color: transparent; }
.tile.home   { grid-column: span 2; background: var(--t-family); border-color: transparent; }
.tile.screen { grid-column: span 3; background: var(--t-screen); color: var(--t-screen-fg); border-color: transparent; }
.tile.magic  { grid-column: span 3; background: var(--t-magic); border-color: transparent; }
.tile.food   { grid-column: span 3; background: var(--t-food); border-color: transparent; }
.tile.fit    { grid-column: span 3; background: var(--t-fit); border-color: transparent; }
.tile.animals { grid-column: span 4; background: var(--t-animals); border-color: transparent; }
.tile.beliefs { grid-column: span 6; background: var(--t-beliefs); color: var(--t-beliefs-fg); border-color: transparent; }
.tile.fit .icons { display: flex; align-items: center; gap: 20px; margin-top: auto; padding-top: 18px; }
.tile.fit .icons svg { display: block; width: auto; fill: currentColor; opacity: 0.85; }
.tile.fit .icons .cut { fill: none; stroke: var(--t-fit); stroke-width: 2.2; stroke-linecap: round; }
.tile.beliefs p:not(.label) { font-size: 19px; max-width: 60ch; }
.tile.beliefs .sym { margin-left: 0.15em; font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif; font-weight: 400; }
.tile.path   { grid-column: span 6; }
.tile.path p:not(.label) { font-size: 19px; line-height: 1.6; max-width: 66ch; }
.tile.links  { grid-column: span 6; }

.label { margin: 0 0 14px; font: 600 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.tile h2 { margin: 0 0 12px; font: 700 clamp(26px, 4vw, 38px)/1.05 var(--display); letter-spacing: -0.02em; }
.tile p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.tile p:last-child { margin-bottom: 0; }
.tile .more { margin-top: auto; padding-top: 6px; font-weight: 600; }
.tile a { text-decoration-color: currentColor; }
.tile a:hover { color: inherit; text-decoration-color: var(--accent); }
.dsplay a:hover { color: var(--t-dsplay-fg); }

.music-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.music figure { margin: 0; text-align: center; font-size: 12px; opacity: 0.85; }
.music svg { display: block; width: 92px; height: auto; margin-bottom: 2px; }
.board line { stroke: currentColor; stroke-width: 1.4; opacity: 0.55; }
.board .nut { stroke-width: 5; opacity: 1; }
.open path, .open circle { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.dots circle { fill: var(--tile-fg); }
.fret { fill: currentColor; font: 600 12px var(--body); opacity: 0.75; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; }
.chips li { padding: 6px 13px; border-radius: 999px; background: rgba(0, 0, 0, 0.1); font-size: 14px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .chips li { background: rgba(255, 255, 255, 0.12); } }

.linklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.linklist li { border-top: 1px solid var(--line); }
.linklist a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  text-decoration: none;
  font: 600 18px/1.2 var(--display);
}
.linklist small { font: 400 14px/1.4 var(--body); color: var(--muted); align-self: center; }
.linklist a:hover small { color: var(--accent); }

footer { padding-block: 28px 56px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 16px; }
  .grid { grid-template-columns: 1fr; }
  .tile, .tile.dsplay, .tile.daltix, .tile.music, .tile.code, .tile.home, .tile.screen, .tile.magic, .tile.food, .tile.fit, .tile.animals, .tile.beliefs, .tile.path, .tile.links { grid-column: auto; }
  .linklist { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .path li { grid-template-columns: 1fr; gap: 0; }
  .tile { padding: 22px 20px; border-radius: 18px; }
  .music-body { grid-template-columns: 1fr; }
  .music figure { text-align: left; }
}
