/* Winetta — coming soon. Index cards on cream paper. Written by hand. */

:root {
  --paper: #f4f0e6;
  --card: #fffdf7;
  --ink: #1e1c17;
  --muted: #6f695c;
  --line: #e3dccb;
  --edge: #2f6b4f;
  --edge-soft: #e8f0ea;
  --type: "Courier New", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .012) 0 1px, transparent 1px 28px),
    var(--paper);
  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(--edge); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--edge); outline-offset: 2px; border-radius: 5px; }

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

/* file header */
.masthead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 26px 0 18px;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand b { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; }
.brand span {
  font-family: var(--type); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.masthead nav { display: flex; gap: 20px; }
.masthead nav a {
  font-family: var(--type); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.masthead nav a:hover, .masthead nav a.active { color: var(--edge); text-decoration: none; }

/* cards */
.deck { padding: clamp(26px, 4vw, 42px) 0 clamp(30px, 5vw, 50px); display: grid; gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(30, 28, 23, .06);
  padding: clamp(20px, 3.4vw, 32px);
}
.card > .tag {
  display: inline-block; margin: 0 0 16px;
  font-family: var(--type); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--edge);
  background: var(--edge-soft);
  padding: 3px 9px; border-radius: 4px;
}

h1 {
  margin: 0 0 16px;
  max-width: 22ch;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.06; letter-spacing: -.038em; font-weight: 780;
}
h1 span { color: var(--edge); }
.tagline { margin: 0 0 14px; color: #45402f; font-size: 1.05rem; }
.intro { margin: 0; max-width: 58ch; color: var(--muted); }

.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }

h2 {
  margin: 0 0 4px;
  font-family: var(--type); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--edge);
}
.hint { margin: 0 0 20px; color: var(--muted); font-size: .89rem; }

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 5px;
  font-family: var(--type); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 2px;
  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: 104px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--edge);
  box-shadow: 0 2px 0 -1px var(--edge);
}
.field .invalid { border-bottom-color: #b23a2f; background: #fdf3f1; }

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

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

.status { margin: 12px 0 0; min-height: 1.2em; font-size: .87rem; font-family: var(--type); }
.status.ok { color: #245840; font-weight: 700; }
.status.err { color: #b23a2f; font-weight: 700; }

.rows { margin: 0; }
.rows > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows dt {
  font-family: var(--type); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.rows dd { margin: 0; text-align: right; font-weight: 600; font-size: .92rem; word-break: break-word; }

.base {
  border-top: 2px solid var(--ink);
  padding: 18px 0 38px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--type); font-size: .74rem; letter-spacing: .06em;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--edge); text-decoration: none; }
.base p { margin: 0; }

/* legal */
.doc { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 52px; }
.doc .card { border-left-width: 6px; }
.doc h1 { margin: 14px 0 12px; font-size: clamp(1.8rem, 4.4vw, 2.4rem); }
.stamp {
  display: inline-block; margin: 0 0 28px;
  padding: 4px 10px; border-radius: 4px;
  background: var(--edge-soft); color: var(--edge);
  font-family: var(--type); font-size: .73rem; letter-spacing: .08em;
}
.doc h2 {
  margin: 28px 0 10px;
  font-family: var(--sans, inherit); font-size: 1.04rem; font-weight: 700;
  letter-spacing: -.01em; text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #45402f; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.doc-actions .btn { width: auto; min-width: 170px; }
.soft { background: var(--edge-soft); color: var(--edge); box-shadow: none; }
.soft:hover { background: #dbe8de; }

@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead { align-items: flex-start; flex-direction: column; }
  .rows > div { flex-direction: column; gap: 2px; }
  .rows dd { text-align: left; }
  .base { flex-direction: column; }
}
