:root {
  --bg: #ffffff;
  --ink: #12324a;
  --muted: #3f5567;
  --sand: #f5efe6;
  --line: #e3dcd1;
  --sun: #f2b232;
  --on-sun: #12324a;
  --orange: #e06a2c;
  --orange-text: #b8462e;
  --band: #12324a;
  --on-band: #ffffff;
  --card: #ffffff;
  --tri3: #12324a;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f2232;
    --ink: #f2ede4;
    --muted: #c2ccd3;
    --sand: #16304a;
    --line: #2a4560;
    --orange-text: #f29a68;
    --band: #0a1926;
    --card: #16304a;
    --tri3: #ffffff;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hand { font-family: "Caveat", cursive; font-weight: 700; line-height: 1.15; }
.note { color: var(--orange-text); font-size: 1.8rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.logo span {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.main-nav a { text-decoration: none; }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--orange-text); }

.langs { display: flex; gap: 4px; }
.langs a {
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.langs a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: inherit;
}
.btn.sun { background: var(--sun); color: var(--on-sun); }
.btn.sun:hover { filter: brightness(0.96); }
.btn.line { border-color: currentColor; color: var(--ink); }
.btn.ink { background: var(--band); color: var(--on-band); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero { padding: 48px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.photo-wrap { position: relative; }
.photo {
  width: 100%;
  height: min(520px, 70vw);
  object-fit: cover;
  border-radius: 24px;
}
.sun-deco { position: absolute; right: -12px; top: -18px; width: 84px; height: 84px; }

.section { padding: 28px 0 64px; }
.band {
  background: var(--band);
  color: var(--on-band);
  padding: 56px 0;
}
.band .muted { color: #d7e0e6; }
.band .lead { color: #ffffff; }
.band .btn.line { color: #fff; }

.board {
  background: var(--sand);
  color: var(--ink);
  border-radius: 28px;
  padding: 28px 22px 22px;
  position: relative;
}
.board-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
  padding-right: 120px;
}
.board-top p { margin-top: 6px; }
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.col {
  background: var(--card);
  border-radius: 18px;
  padding: 16px 16px 8px;
}
.col h3 { margin-bottom: 8px; }
.sail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.sail .time {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
}
.sail .who { color: var(--muted); font-size: 0.95rem; }
.board-line {
  margin-top: 16px;
  font-weight: 700;
}
.fine { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.caution { font-weight: 700; color: var(--ink); }
.board.is-stale .sail { opacity: 0.55; }
.nexts { display: grid; gap: 10px; margin-top: 16px; }
.nexts .sail { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; }

.stamp {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  color: var(--orange-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-10deg);
  background: color-mix(in srgb, var(--sand) 70%, transparent);
  padding: 10px;
}
.stamp b {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
}
.stamp small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.stamp em { font-style: normal; font-size: 0.72rem; font-weight: 700; margin-top: 2px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
}
.fact {
  padding: 20px 22px 18px 0;
  border-top: 3px solid var(--sun);
  margin-right: 22px;
}
.fact b { display: block; margin-bottom: 4px; }
.fact p { color: var(--muted); font-size: 1rem; }

.mark {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.mark li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px; font-weight: 700; }
.mark-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--ink);
}
.mark li:nth-child(2) .mark-ico { background: var(--sun); }

.list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.list article {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  gap: 8px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.list .n {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  color: var(--orange-text);
}

.call {
  background: var(--sand);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.code {
  background: var(--sun);
  color: var(--on-sun);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
}
.code strong,
.code-hit {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
}
.code p { margin-top: 8px; font-size: 0.98rem; }

.tag {
  width: min(240px, 100%);
  background: var(--sun);
  color: var(--on-sun);
  border-radius: 16px 16px 18px 18px;
  padding: 28px 18px 20px;
  position: relative;
  transform: rotate(-2deg);
  box-shadow: 0 10px 24px rgba(18, 50, 74, 0.12);
}
.tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.tag .hand { font-size: 1.8rem; display: block; margin-top: 8px; }
.tag small { display: block; margin-top: 10px; font-weight: 700; }

.rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.room {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.room img { height: 180px; width: 100%; object-fit: cover; }
.room div { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.room b { font-family: "Bricolage Grotesque", sans-serif; }
.swatch { width: 100%; height: 8px; }
.swatch.vit { background: #f2b232; }
.swatch.oxy { background: #2a6a96; }
.swatch.ene { background: #2f7a4c; }

.pair {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.stack { display: flex; flex-direction: column; gap: 14px; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  background: var(--sand);
  color: var(--ink);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card:hover { outline: 2px solid var(--sun); }
.card img { height: 220px; width: 100%; object-fit: cover; }
.card div { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .more { margin-top: auto; font-weight: 700; color: var(--orange-text); }

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

.site-footer { background: var(--band); color: var(--on-band); }
.site-footer a { color: #fff; }
.fgrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0 20px;
}
.fgrid h2 { font-size: 1.15rem; color: var(--sun); margin-bottom: 10px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fbronk { font-size: 1.6rem; color: var(--sun); padding-bottom: 28px; }
.fbottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 0 22px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.desk-link { opacity: 0.8; }

.mcta {
  display: none;
}

.desk { padding: 28px 0 80px; }
.desk-intro { max-width: 42em; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin: 14px 0;
}
.block h2 { font-size: 1.45rem; margin-bottom: 8px; }
.paste {
  background: var(--sand);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}
.paste header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.paste pre {
  white-space: pre-wrap;
  font-family: "DM Sans", sans-serif;
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.5;
}
.warn {
  background: var(--sun);
  color: var(--on-sun);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 600;
}
.editor { display: grid; gap: 10px; }
.editor label, .row-edit label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.editor input, .editor select, .row-edit input, .row-edit select {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #8a8172;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
}
.meta-grid, .row-edit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.row-edit { grid-template-columns: 1.3fr repeat(4, 1fr) auto; margin-top: 8px; }
.tiny { min-height: 44px; padding: 8px 12px; border-radius: 999px; }

@media (max-width: 900px) {
  .hero-grid, .cols, .facts, .call, .pair, .cards, .rooms, .fgrid, .meta-grid, .row-edit {
    grid-template-columns: 1fr;
  }
  .board-top { padding-right: 0; }
  .stamp { position: static; margin: 8px 0 12px auto; }
  .fact { margin-right: 0; }
  .bar .btn.sun { display: none; }
  .mcta {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    box-shadow: 0 8px 20px rgba(18, 50, 74, 0.25);
  }
  .site-footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
