:root {
  --moss: #485749;
  --moss-deep: #3b483c;
  --hair: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.5);
  --paper: #ffffff;
  --ink: #3a473b;
  --muted: rgba(255, 255, 255, 0.68);
  --ok: #d3ebca;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--moss); }
body { margin: 0; color: var(--paper); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.16; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.view { animation: rise 0.35s var(--ease) both; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; padding-block: 22px 96px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.top .logo { display: inline-block; text-decoration: none; }
.tabs { display: flex; gap: 8px 32px; flex-wrap: wrap; }
.tab {
  background: none; border: 0; padding: 6px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 9px;
  transition: color 0.2s;
}
.tab:hover { color: var(--paper); }
.tab[aria-current="page"] { color: var(--paper); text-decoration-color: var(--paper); }

h1 {
  margin: 64px 0 12px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.95;
  font-size: clamp(34px, 6vw, 64px); text-wrap: balance;
  text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.14em;
}
.lede { margin: 0 0 40px; color: var(--muted); font-size: 16px; max-width: 54ch; }

.btn {
  border: 1px solid var(--line); background: transparent; border-radius: 2px; padding: 10px 18px; display: inline-block; text-decoration: none; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid:hover { background: transparent; color: var(--paper); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.link { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s; }
.link:hover { color: var(--paper); }

.bar-tools { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.field { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; min-width: 0; font-size: 14px; transition: border-color 0.2s; }
.field:focus { outline: none; border-bottom-color: var(--paper); }
.field::placeholder { color: var(--muted); }
input[type="search"].field { width: 200px; max-width: 100%; }
input[type="search"]::-webkit-search-cancel-button { filter: invert(1); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 48px 28px; }
.art { position: relative; aspect-ratio: 1; max-width: 100%; overflow: hidden; background: var(--moss-deep); }
.art svg, .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.open { display: block; cursor: pointer; }
.open:hover .art svg, .open:hover .art img { transform: scale(1.05); }
.open:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.meta { margin-top: 16px; display: grid; gap: 4px; }
.meta h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.meta p { margin: 0; color: var(--muted); font-size: 13px; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.size { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.none { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 72px 0; display: grid; gap: 22px; justify-items: center; font-size: 16px; }

.panel { max-width: 760px; border-top: 1px solid var(--hair); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.row .what { min-width: 0; flex: 1 1 260px; }
.row b { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.row .v { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

.login { min-height: 100vh; display: grid; place-items: center; padding-inline: 24px; padding-block: 40px; }
.login form { width: 100%; max-width: 360px; display: grid; gap: 18px; text-align: center; animation: rise 0.45s var(--ease) both; }
.login h2 { margin: 22px 0 0; font-size: clamp(32px, 9vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.95; }
.login p { margin: 0 0 8px; color: var(--muted); }
.login .btn { padding: 14px 20px; width: 100%; }
.login .field { padding: 12px 0; font-size: 15px; width: 100%; text-align: left; }
.login .logo-wrap { display: grid; place-items: center; }
.err { color: #ffd6c9; font-size: 14px; min-height: 1.4em; margin: 0; }

.modal { position: fixed; inset: 0; background: rgba(24, 32, 25, 0.78); display: grid; place-items: center; padding: 20px; z-index: 20; overflow: auto; animation: fade 0.2s ease both; }
.sheet { position: relative; background: var(--moss-deep); border: 1px solid var(--hair); max-width: 900px; width: 100%; padding: 32px; max-height: calc(100vh - 40px); overflow: auto; animation: rise 0.3s var(--ease) both; }
.mb { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: start; }
.x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 20px; line-height: 1; z-index: 2; transition: background 0.2s, color 0.2s; }
.x:hover { background: var(--paper); color: var(--ink); }
.sheet h2 { margin: 0 0 8px; padding-right: 44px; font-size: clamp(30px, 5vw, 48px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.95; overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.14em; }
.stat { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 14px 0 18px; }
.about { margin: 0 0 26px; font-size: 16px; max-width: 56ch; }
.sheet h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
dl.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 28px; margin: 0 0 26px; font-size: 14px; border-top: 1px solid var(--hair); }
dl.specs dt, dl.specs dd { padding: 9px 0; border-bottom: 1px solid var(--hair); margin: 0; }
dl.specs dt { color: var(--muted); }
dl.specs dd { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .mb { grid-template-columns: 1fr; gap: 24px; } .mb .art { max-width: 240px; } .sheet { padding: 22px; } }

.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 22px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); max-width: calc(100vw - 32px); text-align: center; z-index: 30; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) { h1 { margin-top: 44px; } .grid { gap: 40px 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
