@font-face {
  font-family: "Campaign Armenian";
  src: url("armenian.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
  unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
  font-family: "Campaign Armenian";
  src: url("armenian-extrabold.ttf") format("truetype");
  font-display: swap;
  font-weight: 800 900;
  unicode-range: U+0530-058F, U+FB13-FB17;
}
:root {
  --muted: #555;
  --link: color-mix(in srgb, var(--secondary) 55%, var(--ink));
  --rule: #d8d8d8;
  font-family: "Campaign Armenian", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body, h1, h2, p, figure, dl, dd { margin: 0; }
img { display: block; }
a { color: var(--link); }
:where(a, summary, button):focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.site-header { border-bottom: 1px solid var(--rule); }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 30px); padding-block: 8px; }
.site-header a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-header a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.site-logo { margin-inline-end: auto; }
.site-logo img { width: clamp(98px, 30vw, 140px); height: auto; }
.hero {
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 19%, white), white 86%);
  border-bottom: 1px solid var(--rule);
}
.site-header nav, .hero-inner, .more, footer > div { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.hero-inner { position: relative; isolation: isolate; padding-block: clamp(38px, 5.4vw, 76px) 56px; }
.event h1 {
  display: flex; align-items: baseline; gap: .18em; white-space: nowrap;
  font-size: clamp(46px, 5.6vw, 76px); font-weight: 800; line-height: 1.12; letter-spacing: -.038em;
}
.event h1 span { font: 650 .49em/1 system-ui, sans-serif; letter-spacing: -.03em; color: var(--link); }
.event p { margin-top: 5px; font-size: clamp(14px, 1.43vw, 19px); }
.map {
  position: absolute; z-index: -1; top: 50%; transform: translateY(-50%); right: 0;
  width: min(49%, 540px); height: auto;
}
.map img { width: 100%; height: auto; }
/* Tint the original pixel artwork, keeping its grid and tonal variation. */
@supports (mask-image: url("map.webp")) {
  .map { background: var(--secondary); mask: url("map.webp") center / contain no-repeat; forced-color-adjust: none; }
  .map img { mix-blend-mode: luminosity; opacity: .32; }
}
.proof { margin-top: clamp(38px, 4.6vw, 64px); }
.proof h2 strong { display: block; font: 790 clamp(80px, 7.8vw, 108px)/.98 system-ui, sans-serif; letter-spacing: -.06em; }
.proof h2 span { display: block; margin-top: 9px; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.legend::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--secondary); }
.invitation { position: relative; width: min(48%, 465px); margin-top: 30px; }
.invitation > p:first-child { font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 22px; }
.try-puzzle, .practice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.register, .closed {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 14px 30px 16px; border-radius: 13px; font-size: 20px; line-height: 1.4; font-weight: 700;
}
.register { background: var(--primary); color: var(--ink); text-decoration: none; }
.register:hover { background: color-mix(in srgb, var(--primary) 85%, var(--accent)); }
.closed { color: var(--ink); background: color-mix(in srgb, var(--accent) 32%, white); font-size: 16px; }
.more { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; gap: clamp(34px, 5vw, 70px); padding-block: 62px 68px; }
.more h2 { font-size: clamp(23px, 2.2vw, 32px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.info { padding-block: 5px; }
.info > p, .puzzle > p:not(.source) { margin-top: 16px; font-size: 16px; line-height: 1.7; }
.info dl { margin-top: 26px; }
.info dl > div { padding-block: 13px; border-top: 1px solid var(--rule); }
.info dt { font-weight: 700; }
.info dd { color: var(--muted); margin-top: 3px; }
.puzzle { scroll-margin-block: 16px; padding: clamp(20px, 2.5vw, 32px); border: 1px solid var(--rule); border-radius: 18px; background: color-mix(in srgb, var(--secondary) 5%, white); }
.puzzle .source { font-size: 13px; font-weight: 600; color: var(--link); margin-bottom: 7px; }
.puzzle p.question { font-weight: 700; }
.forest { position: relative; padding: 14px 0 62px; margin-top: 13px; background: white; border: 1px solid var(--rule); border-radius: 10px; }
.forest img { width: 100%; height: auto; }
.tree-choices { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border: 0; min-width: 0; }
.tree-choices label { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 4px; padding-bottom: 9px; border-radius: 8px; font-size: 16px; font-weight: 700; }
.tree-choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--link); cursor: inherit; }
.tree-choices:disabled input { visibility: hidden; }
.tree-choices:enabled label { cursor: pointer; }
.tree-choices label:has(:checked) { background: color-mix(in srgb, var(--secondary) 14%, transparent); box-shadow: inset 0 0 0 2px var(--link); }
.tree-choices label:has(:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
@media (hover: hover) {
  .tree-choices:enabled label:hover { background: color-mix(in srgb, var(--secondary) 8%, transparent); }
}
.puzzle-controls:not([hidden]) { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block: 6px; }
.puzzle-controls output { font-size: 15px; }
.puzzle-controls output[data-result="solved"] { color: var(--link); font-weight: 700; }
.puzzle-controls output[data-result="invalid"] { color: #803714; }
.reset { flex: none; min-height: 44px; padding: 5px 0; color: var(--link); border: 0; background: transparent; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reset:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.puzzle details { border-block: 1px solid var(--rule); }
.forest + [hidden] + details { margin-top: 14px; }
.puzzle summary { cursor: pointer; color: var(--link); width: fit-content; font-weight: 700; font-size: 15px; padding-block: 10px; }
.puzzle details p { line-height: 1.65; font-size: 15px; }
.puzzle details small { display: block; margin: 10px 0 16px; font-size: 12px; color: var(--muted); }
.practice { margin-top: 6px; }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer > div, footer nav { display: flex; align-items: center; gap: 24px; }
footer > div { justify-content: space-between; padding-block: 20px; }
footer a { display: inline-block; padding-block: 8px; text-underline-offset: 3px; }
@media (max-width: 850px) {
  .site-header nav, .hero-inner, .more, footer > div { width: calc(100% - 56px); }
  .hero-inner { padding-block: 38px; }
  .proof h2 span { max-width: 15ch; }
  .invitation > p:first-child { font-size: 16px; }
  .more { grid-template-columns: 1fr; gap: 30px; padding-block: 42px; }
}
@media (max-width: 620px) {
  .site-header nav, .hero-inner, .more, footer > div { width: min(100% - 40px, 486px); }
  .site-header nav { font-size: 14px; }
  .hero-inner { padding-block: 24px 30px; }
  .event h1 { font-size: clamp(32px, 10vw, 53px); line-height: 1.18; }
  .event p { font-size: 14px; margin-top: 3px; }
  .proof { position: relative; height: auto; aspect-ratio: 1.19; margin-top: 12px; }
  .map { width: 79%; top: 0; right: 0; transform: none; }
  .proof figcaption { position: absolute; bottom: 0; left: 0; }
  .proof h2 strong { font-size: clamp(42px, 12.5vw, 65px); }
  .proof h2 span { max-width: 10ch; font-size: clamp(17px, 4.6vw, 23px); margin-top: 4px; line-height: 1.14; }
  .legend { font-size: clamp(12px, 2.7vw, 13px); margin-top: 15px; gap: 5px; }
  .legend::before { width: 6px; height: 6px; }
  .invitation { width: 100%; margin-top: 21px; }
  .invitation > p:first-child { font-size: 15px; line-height: 1.55; }
  .hero-actions { justify-content: center; margin-top: 15px; gap: 2px; }
  .register, .closed { display: flex; width: 100%; padding: 13px 12px 15px; font-size: 18px; }
  .more { width: min(100% - 32px, 494px); padding-block: 24px 35px; }
  .more h2 { font-size: 24px; }
  .puzzle { padding: 18px; }
  .forest { margin-inline: -8px; }
  .tree-choices label { font-size: 15px; }
  .puzzle-controls:not([hidden]) { flex-wrap: wrap; row-gap: 0; }
  footer > div { flex-wrap: wrap; gap: 7px 20px; }
}
