:root {
  color-scheme: light;
  --paper: #fbf8f0;
  --ink: #1d352a;
  --muted: #4f6257;
  --green: #174a35;
  --line: #cdd5c7;
  --display: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 6.3rem; }
html:has(body.winter) { background: #f7f7ef; }
body { margin: 0; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid #b55735; outline-offset: 4px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.03; font-weight: 400; }
h1 { font-size: clamp(3.2rem, 6.4vw, 6.5rem); letter-spacing: -.064em; }
h2 { font-size: clamp(2rem, 4.1vw, 3.6rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: -.035em; }
.shell { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; transform: translateY(-160%); z-index: 6; background: white; padding: 9px; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header { min-height: 77px; padding-block: 9px; }
.brand img { width: 205px; }
.brand picture { display: block; }
.header nav, .footer nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.header nav > a, .footer nav a { font-size: .875rem; font-weight: 650; }
.header nav > a:not(.button) { text-decoration: none; }
.header nav > a:not(.button):hover { text-decoration: underline; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 7px; color: #fff; background: var(--green); text-align: center;
  text-decoration: none; padding: .75rem 1.15rem; min-height: 46px; font-weight: 700;
  line-height: 1.35;
}
.button:hover { background: #246347; }
.button.small { font-size: .86rem; padding-inline: .95rem; }
.text-link { font-weight: 700; text-decoration-thickness: 1px; }
.hero { display: grid; align-items: center; gap: clamp(28px, 5vw, 75px); padding-block: clamp(40px, 6vw, 88px); }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.product { display: flex; align-items: center; gap: 11px; font-weight: 740; }
.product img { border-radius: 10px; }
.intro { max-width: 38ch; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.winter { --paper: #f7f7ef; }
.winter-hero { grid-template-columns: 1fr .94fr; }
.winter-hero .picture { padding: 12px; border: 1px solid #bac8c1; background: #fffdf7; box-shadow: 0 10px 35px #1d352a19; transform: rotate(1.4deg); }
.winter-hero figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: 10px 3px 2px; }
.winter-hero figcaption small { margin: 0; }

.section { padding-block: clamp(37px, 5.3vw, 76px); }
.section-heading { display: flex; gap: 22px; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.section-heading > p { max-width: 43ch; color: var(--muted); }
.platforms, .tile-grid, .screen-grid { display: grid; gap: clamp(11px, 1.7vw, 24px); }
.platforms, .screen-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tile-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.platform {
  display: flex; flex-direction: column; gap: 13px; align-items: flex-start;
  padding: clamp(18px, 2.3vw, 29px); border: 1px solid var(--line); border-radius: 13px;
  background: #fffdf7;
}
.platform.apple { background: #eef4e8; border-color: #bccdb7; }
.platform.android { background: #f3eee3; border-color: #d6c7af; }
.platform p:not(.status) { color: var(--muted); }
.platform .detail { font-size: .88rem; }
.platform .button { margin-top: auto; }
.status { display: flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 770; letter-spacing: .055em; text-transform: uppercase; }
.status > span { width: 8px; height: 8px; border-radius: 50%; background: #34724e; flex: none; }
.android .status > span, .holiday .status > span { background: #965630; }
.winter-band { background: #e7eee9; border-block: 1px solid #cbd7d0; }
.picture { min-width: 0; }
.picture img { width: 100%; }
.preview-image { display: block; }
.preview-image:hover img { box-shadow: 0 0 0 2px #587963; }
figcaption { padding-top: 8px; font-weight: 650; line-height: 1.35; }
figcaption small { display: block; margin-top: 4px; font: inherit; font-size: .82rem; font-weight: 500; color: var(--muted); }
.holiday-band { background: #eee2cc; border-block: 1px solid #dbcaae; }
.holiday { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 76px); }
.holiday-copy { display: grid; gap: 12px; }
.holiday-copy > p:not(.status), dd { color: var(--muted); }
.holiday dl { display: grid; gap: 10px; }
.holiday dl > div { padding-top: 10px; border-top: 1px solid #cfc1a8; }
.holiday dt { font-weight: 720; }
.holiday-art { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.holiday-art img { border-radius: 7px; }
.screens .picture { background: #edf0e7; border: 1px solid var(--line); padding: 10px; border-radius: 10px; }
.screens .preview-image {
  display: block;
  height: clamp(190px, 29vw, 350px);
  background: #dfe8df;
  padding: 12px;
  border-radius: 6px;
}
.screens img { height: 100%; width: 100%; object-fit: contain; }
.screens figcaption { padding: 8px 4px 2px; }
.site-footer { border-top: 1px solid var(--line); }
.footer { padding-block: 27px; font-weight: 700; }
.footer nav { gap: 16px; }

dialog { background: #fffdf7; color: var(--ink); width: min(850px, calc(100% - 26px)); max-height: 95dvh; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
dialog::backdrop { background: #0c201ce0; }
dialog img { margin-inline: auto; max-height: 79dvh; width: auto; object-fit: contain; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.dialog-top h2 { font-size: 1.4rem; }
.dialog-top button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: inherit; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 44px); }
  .hero { gap: 24px; }
  .hero h1 br { display: none; }
  .platforms { grid-template-columns: 1fr; }
  .platform { gap: 9px; }
  .platform .button { margin-top: 5px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 30px); }
  .brand img { width: clamp(118px, 40vw, 165px); }
  .header { min-height: 63px; gap: 7px; }
  .header nav { justify-content: end; gap: 6px; }
  .header nav > a[href^="#"]:not(.button) { display: none; }
  .header nav > a { font-size: .76rem; }
  .header .button.small { min-height: 42px; padding: 8px 10px; }
  .hero, .holiday { grid-template-columns: 1fr; }
  .hero { padding-block: 29px 38px; gap: 23px; }
  .hero-copy { gap: 14px; }
  h1 { font-size: clamp(2.85rem, 10.5vw, 4.15rem); }
  .product { font-size: .85rem; }
  .product img { width: 38px; height: 38px; }
  .winter-hero .picture { transform: none; }
  .section-heading { display: grid; gap: 9px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .screen-grid { grid-template-columns: 1fr; }
  .screens .preview-image { height: clamp(240px, 85vw, 390px); }
  .footer { align-items: start; flex-direction: column; gap: 9px; }
}

.header > .brand { margin-right: auto; }
.header-download { flex: 0 0 auto; }
body.winter { background: var(--paper); }
@media (max-width: 620px) {
  .header { gap: 9px; }
  .header nav { display: none; }
  .header-download { max-width: 135px; }
}
@media (max-width: 390px) {
  .header { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .header > .brand { grid-area: 1 / 1; }
  .header > .language-selector { grid-area: 1 / 2; }
  .header-download { grid-area: 2 / 1 / 3 / 3; justify-self: end; }
  html:has(body.winter) { scroll-padding-top: 8rem; }
}
