/* WinkLine — coming soon. A grid of thin-bordered cells, cream and mustard. Written by hand. */

:root {
  --bg: #fdfcf9;
  --card: #ffffff;
  --ink: #1a1a17;
  --muted: #6f6a5f;
  --line: #ddd8cd;
  --accent: #c99a1e;
  --accent-deep: #9c7612;
  --accent-soft: #f8f0d8;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* header */
.top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 24px 0 clamp(24px, 4vw, 40px);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--ink);
  font-weight: 830; letter-spacing: -.02em; font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand i {
  font-style: normal;
  color: var(--accent);
  font-size: 1.5rem; line-height: 0;
}
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); font-size: .86rem; }
.top nav a:hover, .top nav a.active { color: var(--accent-deep); }

/* the cell grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.cell {
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 3.4vw, 40px);
}
.cell.wide { grid-column: 1 / -1; }
.cell.plain { background: #fbfaf6; }

.chip {
  display: inline-block; margin: 0 0 18px;
  padding: 4px 11px;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  max-width: 24ch;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.04; letter-spacing: -.045em; font-weight: 830;
}
h1 span { color: var(--accent); }
.lede { margin: 0 0 14px; color: #38352c; }
.lede.quiet { margin-bottom: 0; color: var(--muted); }

h2 {
  margin: 0 0 14px;
  font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.hint { margin: 0 0 20px; color: var(--muted); font-size: .89rem; }

/* lines */
.lines { margin: 0; }
.lines > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.lines > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lines dt { color: var(--muted); font-size: .85rem; }
.lines dd { margin: 0; text-align: right; font-weight: 680; font-size: .92rem; word-break: break-word; }

.notes { margin: 0; padding: 0; list-style: none; }
.notes li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: #38352c; font-size: .93rem;
}
.notes li:last-child { border-bottom: 0; padding-bottom: 0; }
.notes li::before {
  content: "—"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* form */
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .7rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 0;
  font: inherit; font-size: .97rem;
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 -1px var(--accent);
}
.field .invalid { border-bottom-color: #b23a2f; background: #fdf4f2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 34px;
  font: inherit; font-size: .76rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: var(--ink);
  border: 0; border-radius: 0;
  cursor: pointer;
  transition: background .18s;
}
.btn:hover { background: var(--accent-deep); }
.btn:disabled { opacity: .55; cursor: default; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 12px 0 0; min-height: 1.2em; font-size: .88rem; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

/* footer */
.base {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .83rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--accent-deep); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 840px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.doc .sheet {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(26px, 4.4vw, 46px);
}
.doc h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 4.6vw, 2.5rem); }
.stamp {
  display: inline-block; margin: 0 0 28px;
  padding: 4px 11px; border: 1px solid var(--line);
  color: var(--muted); font-size: .76rem;
}
.doc h2 {
  margin: 32px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.04rem; font-weight: 780; letter-spacing: -.015em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.doc p, .doc li { color: #38352c; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px;
}
.doc-actions .btn { padding: 0 26px; }
.ghost { background: var(--accent-soft); color: var(--accent-deep); }
.ghost:hover { background: #f2e6c4; }

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .lines > div { flex-direction: column; gap: 2px; }
  .lines dd { text-align: left; }
  .base { flex-direction: column; }
}
