/* Start page: choose between the new tree, the classic tree and 3D */
:root {
  --paper: #efe6d1;
  --paper-hi: #f7f1e3;
  --ink: #38331f;
  --muted: #6f6650;
  --olive: #636c4d;
  --gold: #b8892f;
  --gold-deep: #9e7424;
  --panel: rgba(251, 247, 237, .93);
  --line: rgba(99, 108, 77, .28);
  --contour: rgba(120, 104, 70, .13);
  --font-display: "Noto Serif Armenian", "Noto Serif", Georgia, serif;
  --font-ui: "Noto Sans Armenian", "Noto Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }

.start {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, var(--paper-hi), var(--paper) 70%);
  display: grid; grid-template-rows: auto 1fr auto;
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contours path { fill: none; stroke: var(--contour); stroke-width: 1.2; }
.contours text { font-family: var(--font-display); fill: var(--olive); opacity: .10; letter-spacing: .5em; font-size: 22px; }

.bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; }
.brand { min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.brand-sub { font-size: 13px; color: var(--muted); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); padding: 3px; flex: none; }
.lang button { font: 600 13px var(--font-ui); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--olive); color: #f6f1e4; }
.lang button:focus-visible, .card:focus-visible, .foot a:focus-visible, .foot .link:focus-visible, .about-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

main.choose { position: relative; padding: 8px 28px 32px; display: grid; gap: 24px; align-content: start; justify-items: center; }
.lead { text-align: center; display: grid; gap: 6px; justify-items: center; }
.lead .mark { width: 128px; height: 128px; margin-bottom: 4px; }
.lead h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.25; margin: 0; text-wrap: balance; }
.lead p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: balance; }

.cards { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; width: 100%; max-width: 1040px; }
.card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  text-decoration: none; color: inherit; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(56, 51, 31, .14); }
.card.main { border: 2px solid var(--gold); box-shadow: 0 6px 20px rgba(184, 137, 47, .22); }
.card.soon { opacity: .62; cursor: default; }
.thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; display: block; }
.card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 4px; }
.card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.tag.rec { background: var(--olive); color: #f6f1e4; }
.tag.heavy { color: #8a4f2e; border: 1px solid #8a4f2e; }
.tag.soon { color: var(--muted); border: 1px dashed var(--muted); }
.go { font-weight: 700; font-size: 14px; color: var(--olive); }
.card.main .go { color: var(--gold-deep); }

.foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 28px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 26px; height: 26px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a, .foot .link { color: var(--muted); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover, .foot .link:hover { color: var(--ink); }

dialog.about { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--paper-hi); color: var(--ink); box-shadow: 0 20px 50px rgba(56, 51, 31, .3); }
dialog.about::backdrop { background: rgba(56, 51, 31, .45); }
.about-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper-hi); }
.about-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0; }
.about-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.about-body { padding: 16px 18px 20px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.about-body img { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  .bar { padding: 14px 16px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { display: none; }
  .lang button { padding: 5px 9px; }
  main.choose { padding: 4px 16px 20px; gap: 16px; }
  .lead .mark { width: 88px; height: 88px; }
  .lead h1 { font-size: 1.45rem; }
  .lead p { font-size: 14px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; padding: 12px; }
  .card .thumb { grid-row: 1 / span 2; align-self: center; }
  .card h2 { font-size: 1.1rem; }
  .card p { font-size: 13px; }
  .card .go { display: none; }
  .foot { padding: 12px 16px 16px; flex-direction: column; align-items: flex-start; }
  .contours text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
