:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --paper: #fff6e3;
  --ink: #301d1c;
  --coral: #fd5945;
  --amber: #ffcc48;
  --rule: #ddbea0;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background-image: radial-gradient(#aa6f3224 .7px, transparent .9px);
  background-size: 6px 6px;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #985000; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1440px, calc(100% - clamp(28px, 7vw, 112px))); margin-inline: auto; }
.site-nav, .site-nav nav, .brand, footer { display: flex; align-items: center; }
.site-nav { justify-content: space-between; gap: 12px; padding-block: clamp(16px, 2.6vw, 38px); }
.brand { gap: 8px; margin: 0; font-size: clamp(22px, 3vw, 44px); letter-spacing: -.075em; line-height: 1; font-weight: 850; }
.brand img { display: block; width: clamp(42px, 5vw, 68px); height: auto; }
.site-nav nav { gap: 12px; }
.site-nav nav a, .receipt button, .receipt a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 19px; border: 2px solid var(--ink); border-radius: 9px;
  box-shadow: 2px 3px var(--ink); font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: pre;
}
.download, .receipt a { background: var(--ink); color: var(--paper); }
.site-nav .download.highlighted {
  background: var(--coral); color: var(--ink);
  box-shadow: 2px 3px var(--ink), 0 0 0 5px var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .site-nav .download.highlighted { animation: download-pulse 680ms ease-in-out 2; }
  @keyframes download-pulse {
    0%, 100% { box-shadow: 2px 3px var(--ink), 0 0 0 5px var(--amber); }
    50% { box-shadow: 2px 3px var(--ink), 0 0 0 10px transparent; }
  }
}
#downloadToast {
  position: fixed; z-index: 11; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  color: var(--paper); background: var(--ink); border-radius: 8px;
  font-size: .9375rem; font-weight: 600; text-align: center; pointer-events: none;
}
#downloadToast:not(:empty) { padding: 12px 16px; box-shadow: 3px 3px var(--amber); }
.buy, .receipt button { background: var(--amber); color: var(--ink); }
.site-nav a:hover, .receipt :is(a,button):hover { transform: translateY(-1px); }
.site-nav a:active, .receipt :is(a,button):active { transform: translate(2px, 3px); box-shadow: none; }

.desktop {
  --bar-height: 40px;
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(455px, 43vw, 660px); border: 2px solid var(--ink); border-radius: 15px;
  background: #933f32; box-shadow: 4px 6px var(--ink);
}
.menubar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  height: var(--bar-height); padding-inline: 16px; background: var(--ink); color: var(--paper); font-size: 14px;
}
.finder, .tray, .system, #menuButton { display: flex; align-items: center; }
.finder { gap: 18px; }
.finder img { width: 15px; height: 18px; object-fit: contain; }
.tray, .system { gap: 14px; }
.system img { width: 16px; height: 16px; object-fit: contain; }
.system .battery { width: 23px; }
.system time { font-variant-numeric: tabular-nums; }
#menuButton {
  gap: 7px; min-height: 30px; padding: 3px 11px; border: 1px solid #71564c;
  border-radius: 5px; color: var(--paper); background: #4e3330; font-weight: 600;
}
#menuButton img { width: 15px; height: 15px; }
#menuButton:is(:hover,[aria-expanded=true]) { background: #76413a; }
#menuButton:focus-visible, .workspace:focus-visible { outline-color: var(--amber); }
.workspace {
  position: absolute; inset: var(--bar-height) 0 0; overflow: hidden;
  background: #264956 url(assets/blossom-lake.webp) 26% center / cover;
  touch-action: pan-y pinch-zoom; user-select: none;
}
.workspace[data-effect="bulletHoles"] { background: #aa4937 url(assets/canyon.webp) center / cover; }
.workspace:focus-visible { outline-offset: -4px; }
.workspace canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.caption {
  position: absolute; bottom: clamp(20px, 3vw, 48px); left: clamp(20px, 3vw, 48px);
  font-size: clamp(40px, 6.2vw, 96px); font-weight: 850; letter-spacing: -.07em; line-height: 1;
  color: var(--paper); text-shadow: 2px 3px var(--ink); pointer-events: none;
}
.menu-shell {
  position: absolute; z-index: 1; top: var(--bar-height); right: 10px; width: 210px;
  max-height: calc(100% - var(--bar-height) - 14px); display: flex; flex-direction: column;
  padding: 5px; border: 1px solid #735449; border-radius: 8px; color: var(--paper);
  background: #342521f7; box-shadow: 0 7px 18px #35191355;
}
.choices { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #947567 transparent; }
.menu-group + .menu-group { margin-top: 4px; padding-top: 3px; border-top: 1px solid #685147; }
.menu-label { padding: 3px 0 3px 24px; font-size: 12px; color: #dfc6ad; font-weight: 650; }
.menu-item {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 24px;
  padding: 3px 9px 3px 24px; border: 0; border-radius: 4px;
  text-align: left; color: inherit; background: transparent; font-size: 14px;
}
.menu-item[aria-checked=true]::before { content: '✓'; position: absolute; left: 6px; }
.menu-item:enabled:is(:hover,:focus-visible) { outline: 0; background: var(--amber); color: var(--ink); }
.menu-item.mac-only { color: #b49f94; }
.slider-row { display: flex; align-items: center; gap: 10px; min-height: 28px; padding: 0 8px; }
.slider-row input { min-width: 0; flex: 1; accent-color: var(--amber); cursor: pointer; }
.slider-row output { min-width: 35px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
#scrollMenu { background: transparent; border: 0; color: inherit; font-size: 18px; line-height: 1; }
footer {
  justify-content: flex-end; margin-block: 22px; padding: 0 3px; color: #684434;
  font-family: ui-monospace, Menlo, monospace; font-size: .8125rem;
}
#surface { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }
.receipt {
  max-width: 640px; margin-block: 10vh; padding: clamp(20px, 4vw, 42px); background: var(--paper);
  border: 2px solid var(--ink); border-top: 8px solid var(--coral); border-radius: 12px; box-shadow: 4px 6px var(--ink);
}
.receipt h1 { margin-top: 0; letter-spacing: -.045em; }
.receipt p { line-height: 1.5; }
.receipt input { width: min(100%, 370px); padding: 10px; margin: 0 8px 10px 0; font: 1rem ui-monospace, monospace; }

@media (max-width: 650px) {
  .finder span, .for-mac { display: none; }
  .site-nav nav { gap: 7px; }
  .site-nav nav a { font-size: 14px; padding-inline: 10px; }
  .brand { gap: 2px; white-space: nowrap; font-size: 21px; }
  .desktop { height: clamp(440px, 67svh, 590px); }
  .workspace { background-position: 11% center; }
  .menubar { padding-inline: 10px; }
  .finder, .tray, .system { gap: 9px; }
  .menu-shell { width: 184px; }
  footer { margin-block: 19px; }
}
@media (max-width: 365px) {
  .brand img { width: 31px; }
  .brand { font-size: 20px; white-space: normal; }
  .site-nav nav a { font-size: 13px; padding-inline: 7px; }
}
