:root {
  --ply: #cbb79a;
  --ply-dark: #b49a78;
  --ink: #1c1712;
  --mute: #5c5348;
  --tape: #e6c35c;
  --ok: #2f6b46;
  --panel: #efe6d6;
  --line: rgba(28, 23, 18, 0.14);
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  background:
    linear-gradient(90deg, rgba(28,23,18,0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(28,23,18,0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(165deg, #d8c4a6, var(--ply) 45%, var(--ply-dark));
  min-height: 100vh;
}
a { color: #7a4e12; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 40; background: #fff; padding: 8px 10px; }

.site {
  width: min(1080px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}
.top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding-bottom: 0.9rem; border-bottom: 2px dashed rgba(28,23,18,0.22);
}
.brand { text-decoration: none; color: inherit; }
.brand b {
  display: block; font-family: var(--display); font-size: 1.7rem;
  font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase;
}
.brand span { color: var(--mute); font-size: 0.88rem; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
.top nav a { color: var(--mute); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }

.intro {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.2rem;
  margin: 1.25rem 0 1rem; align-items: end;
}
.intro h1 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 0.98; text-transform: uppercase;
  letter-spacing: 0.01em;
}
.intro p { margin: 0; color: var(--mute); max-width: 34ch; }

.work {
  display: grid; grid-template-columns: 180px 1fr; gap: 0.85rem;
  background: var(--panel);
  border: 1px solid rgba(28,23,18,0.2);
  box-shadow: 0 18px 40px rgba(28,23,18,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.rooms {
  background: #2a241c; color: #f0e6d4; padding: 0.7rem 0;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.rooms button {
  border: 0; background: transparent; color: inherit; text-align: left;
  font: 600 1rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.7rem 0.9rem; cursor: pointer; border-left: 4px solid transparent;
}
.rooms button.is-on {
  background: rgba(230,195,92,0.18); border-left-color: var(--tape); color: #fff;
}
.sheet { padding: 0.95rem 1rem 1.1rem; background: #f7f0e4; }
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
  margin-bottom: 0.7rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  margin: 0; font-family: var(--display); text-transform: uppercase; font-size: 1.35rem;
}
.sheet-head span { font-family: var(--mono); font-size: 0.78rem; color: var(--mute); }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: start;
  padding: 0.55rem 0; border-bottom: 1px dotted rgba(28,23,18,0.18);
}
.tasks label { display: contents; cursor: pointer; }
.tasks input {
  width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--ok);
}
.tasks .txt { font-size: 1rem; }
.tasks .txt.is-done { text-decoration: line-through; color: var(--mute); }
.tasks .tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--mute);
  border: 1px solid var(--line); padding: 0.15rem 0.35rem; border-radius: 2px;
}
.hint { margin: 0.75rem 0 0; color: var(--mute); font-size: 0.88rem; }

.cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.3rem 0;
}
.box {
  background: rgba(247,240,228,0.72); border: 1px solid rgba(28,23,18,0.16);
  border-radius: 4px; padding: 0.95rem 1rem;
}
.box h3 {
  margin: 0 0 0.4rem; font-family: var(--display); text-transform: uppercase; font-size: 1.2rem;
}
.box p { margin: 0; color: var(--mute); font-size: 0.95rem; }

.catalog {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem 1rem; align-items: center;
  background: #2a241c; color: #f3ebe0; padding: 1rem 1.1rem; border-radius: 4px; margin: 1.1rem 0;
}
.catalog .label {
  grid-column: 1 / -1; margin: 0; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tape);
}
.catalog img { width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.catalog a { color: inherit; text-decoration: none; display: grid; gap: 0.12rem; }
.catalog a i { font-style: normal; color: rgba(243,235,224,0.7); font-size: 0.88rem; }
.catalog a u { color: var(--tape); text-decoration: none; }

.faq { margin: 1.3rem 0; }
.faq h2 { margin: 0 0 0.6rem; font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; }
.faq details { border-top: 1px solid rgba(28,23,18,0.16); padding: 0.65rem 0; }
.faq details:last-child { border-bottom: 1px solid rgba(28,23,18,0.16); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.35rem 0 0; color: var(--mute); }

.foot {
  margin-top: 1.8rem; padding-top: 0.9rem; border-top: 2px dashed rgba(28,23,18,0.22);
  color: var(--mute); font-size: 0.86rem;
}
.foot p { margin: 0 0 0.35rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin-top: 0.45rem; }
.foot nav a { color: var(--mute); text-decoration: none; }

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30;
  max-width: 420px; margin: 0 auto; display: flex; gap: 0.7rem; align-items: center;
  background: #f7f0e4; border: 1px solid rgba(28,23,18,0.2); padding: 0.8rem 0.95rem;
  box-shadow: 0 14px 30px rgba(28,23,18,0.18);
}
.cookie p { margin: 0; font-size: 0.86rem; color: var(--mute); }
.cookie button {
  flex: none; border: 0; background: #2a241c; color: #fff; padding: 0.45rem 0.75rem;
  cursor: pointer; font: 700 0.84rem var(--display); text-transform: uppercase;
}
.prose {
  max-width: 42rem; margin: 1.3rem auto; background: #f7f0e4;
  border: 1px solid rgba(28,23,18,0.16); padding: 1.2rem 1.15rem;
}
.prose h1 { margin-top: 0; font-family: var(--display); text-transform: uppercase; }

@media (max-width: 820px) {
  .intro, .cols { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .rooms { flex-direction: row; overflow-x: auto; padding: 0.35rem; }
  .rooms button { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .rooms button.is-on { border-bottom-color: var(--tape); }
}
