/* MelBeat — coming soon. Warm poster, heavy rules, terracotta. Written by hand. */

:root {
  --paper: #f6f1e8;
  --ink: #16130f;
  --muted: #6b6154;
  --rule: #16130f;
  --hair: #ddd3c4;
  --accent: #c9451f;
  --radius: 2px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, ui-sans-serif, system-ui, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sheet { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

/* top bar */
.top { border-bottom: 2px solid var(--rule); }
.top .sheet {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px;
}
.stamp {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.stamp:hover { text-decoration: none; }
.stamp i {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-size: .72rem; letter-spacing: 0;
}
.top nav { display: flex; gap: 24px; }
.top nav a {
  color: var(--muted);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
}
.top nav a:hover, .top nav a.active { color: var(--ink); text-decoration: none; }

/* hero */
.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(30px, 4vw, 46px); }
.bar8 { height: 8px; background: var(--accent); margin-bottom: clamp(26px, 4vw, 40px); }
.label {
  display: block; margin-bottom: 18px;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0 0 24px;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .tagline {
  margin: 0 0 16px;
  max-width: 46ch;
  font-size: 1.12rem;
  font-weight: 600;
}
.hero .intro { margin: 0; max-width: 58ch; color: var(--muted); }

/* columns */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-top: 2px solid var(--rule);
}
.col { padding: clamp(28px, 4vw, 44px) 0; }
.col + .col { border-left: 1px solid var(--hair); padding-left: clamp(22px, 4vw, 44px); }
.col h2 {
  margin: 0 0 6px;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); font-weight: 700;
}
.col .hint { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .97rem;
  color: var(--ink);
  background: #fdfbf7;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 69, 31, .12);
}
.field .invalid { border-color: var(--accent); background: #fdf1ec; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 0 26px;
  font: inherit; font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--ink);
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 14px 0 0; min-height: 1.2em; font-size: .88rem; }
.status.ok { color: #1d6b46; font-weight: 600; }
.status.err { color: var(--accent); font-weight: 600; }

/* developer rows */
.rows { margin: 0; }
.rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.rows > div:last-child { border-bottom: 0; }
.rows dt {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.rows dd { margin: 0; text-align: right; font-weight: 600; font-size: .94rem; word-break: break-word; }

/* footer */
.foot { border-top: 2px solid var(--rule); margin-top: clamp(30px, 5vw, 52px); }
.foot .sheet {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 34px;
  color: var(--muted); font-size: .78rem;
  letter-spacing: .04em;
}
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
.foot p { margin: 0; }

/* legal */
.legalpage { max-width: 820px; margin: 0 auto; padding: clamp(38px, 6vw, 66px) clamp(20px, 4vw, 44px) 58px; }
.legalpage .bar8 { margin-bottom: 30px; }
.legalpage h1 {
  margin: 0 0 14px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  letter-spacing: -.03em; line-height: 1;
}
.meta {
  margin: 0 0 34px; padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.legalpage h2 {
  margin: 32px 0 10px;
  font-family: var(--serif); font-weight: 400;
  font-size: 1.24rem; letter-spacing: -.01em;
}
.legalpage h2:first-of-type { margin-top: 0; }
.legalpage p, .legalpage li { color: #3b352c; }
.legalpage ul { padding-left: 20px; }
.legalpage li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 44px; padding-top: 22px;
  border-top: 2px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 18px;
}
.doc-actions a {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.doc-actions a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
}
@media (max-width: 540px) {
  .rows > div { flex-direction: column; gap: 3px; }
  .rows dd { text-align: left; }
  .foot .sheet { flex-direction: column; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
}
