:root {
  --ink: #16110d;
  --paper: #f4ead0;
  --paper-ink: #241c12;
  --chili: #c4452f;
  --mute: #8a7d6a;
  --line: rgba(255, 255, 255, 0.08);
  --cream: #efe6d4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hp {
  display: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 0;
  position: relative;
  z-index: 1;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-family: Fraunces, "Noto Serif SC", serif;
  font-size: 20px;
}

.top-meta {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
}

.stage {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 36px 40px;
  align-items: start;
  padding: 48px 28px 28px;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  flex: 1;
}

.slogan {
  margin: 0 0 10px;
  color: var(--mute);
  font-family: Fraunces, serif;
  font-size: 15px;
}

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 16px 0 0;
  color: #d9cdb8;
  font-size: 16px;
}

.wait,
.get {
  margin-top: 28px;
}

.dl {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--chili);
  color: #fff8f3;
  font: inherit;
  text-decoration: none;
}

.dl:hover {
  background: #b33c29;
}

.dl:focus-visible {
  outline: 2px solid #e08a78;
  outline-offset: 2px;
}

.wait-note {
  margin: 0 0 12px;
  color: var(--mute);
  font-size: 14px;
}

.wait-row {
  display: flex;
  gap: 8px;
}

.wait-row input {
  flex: 1;
  min-width: 0;
  background: #0f0c09;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
}

.wait-row input:focus,
.wait-row button:focus-visible,
.sites input:focus-visible {
  outline: 2px solid #e08a78;
  outline-offset: 2px;
}

.wait-row button {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--chili);
  color: #fff8f3;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.wait-row button:hover {
  background: #b33c29;
}

.wait-row button:disabled {
  opacity: 0.55;
  cursor: default;
}

.sites {
  border: 0;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  gap: 16px;
  color: var(--mute);
  font-size: 13px;
}

.sites label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.sites input {
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid #6d6254;
  border-radius: 50%;
  background: #0f0c09;
}

.sites input:checked {
  border-color: var(--chili);
  background: radial-gradient(circle, var(--chili) 4px, #0f0c09 5px);
}

.form-msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 13px;
}

.form-msg.ok {
  color: #9ad0a6;
}

.form-msg.err {
  color: #f0a090;
}

.facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mute);
  font-size: 13px;
}

.facts li + li {
  margin-top: 8px;
}

.facts li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--chili);
  border-radius: 1px;
  vertical-align: 1px;
}

.desk {
  min-width: 0;
}

.mac {
  background: #1c1814;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.mac-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mac-bar strong {
  font-family: Fraunces, "Noto Serif SC", serif;
  font-weight: 600;
}

.dots {
  display: flex;
  gap: 6px;
  width: auto;
  height: auto;
  background: none;
}

.dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dots i:nth-child(1) {
  background: #e25c4a;
}

.dots i:nth-child(2) {
  background: #d6ae4a;
}

.dots i:nth-child(3) {
  background: #5faf6a;
}

.seg {
  display: flex;
  background: #0f0c09;
  border-radius: 8px;
  padding: 2px;
}

.seg b,
.seg i {
  font-style: normal;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 6px;
}

.seg b {
  background: #2a2218;
}

.seg i {
  color: var(--mute);
}

.search {
  flex: 1;
  min-width: 0;
  background: #0f0c09;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  color: #cbbca3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.go {
  background: var(--chili);
  color: #fff8f3;
  border-radius: 8px;
  padding: 6px 12px;
}

.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 12px;
  overflow: auto;
  flex-wrap: nowrap;
}

.chips em {
  font-style: normal;
  background: #2a2218;
  color: var(--cream);
  border-radius: 999px;
  padding: 3px 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brief {
  margin: 14px 14px 16px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 10px;
  padding: 28px 32px 32px;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.brief h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.brief-kicker {
  margin: 8px 0 18px;
  color: #7a6a52;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12px;
}

.brief h3 {
  margin: 16px 0 4px;
  font-size: 14px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
}

.brief p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.foot {
  padding: 16px 28px 32px;
  color: var(--mute);
  font-size: 12px;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  border-top: 1px solid var(--line);
  margin: 12px 28px 0;
}

.foot p {
  margin: 0;
}

.foot p + p {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .top,
  .stage {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stage {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .mac-bar .seg,
  .mac-bar .search,
  .mac-bar .go,
  .dots,
  .chips {
    display: none;
  }

  .wait-row {
    flex-direction: column;
  }

  .foot {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mac {
    animation: settle 0.7s ease both;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
