/* Novera Vale — coming soon. Warm paper, serif, notes in the margin. Written by hand. */

:root {
  --paper: #fbf8f1;
  --panel: #f5f0e4;
  --ink: #1d1a15;
  --muted: #6b6355;
  --line: #e5dfd1;
  --bronze: #8a5a2b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", 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: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 940px; 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, 42px);
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.24rem; letter-spacing: .01em;
}
.brand:hover { text-decoration: none; }
.brand i { font-style: italic; color: var(--bronze); }
.top nav { display: flex; gap: 20px; }
.top nav a {
  color: var(--muted);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
}
.top nav a:hover, .top nav a.active { color: var(--bronze); }

/* margin-note grid */
.rows { padding: clamp(30px, 5vw, 52px) 0 0; }
.row {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 0 clamp(20px, 4vw, 40px);
  padding-bottom: clamp(26px, 4vw, 40px);
}
.note {
  font-family: var(--serif);
  font-style: italic;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--muted);
  padding-top: 6px;
}
.note::before {
  content: "";
  display: block;
  width: 26px; height: 1px;
  background: var(--line);
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 20px;
  max-width: 26ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 3.3rem);
  line-height: 1.12; letter-spacing: -.02em;
}
h1 em { font-style: italic; color: var(--bronze); }
.body p { margin: 0 0 14px; color: #38332a; }
.body p:last-child { margin-bottom: 0; }

/* form panel */
.form-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(22px, 4vw, 38px);
}
.form-block h2 {
  margin: 0 0 4px;
  font-family: var(--serif); font-weight: 400; font-size: 1.34rem;
  text-transform: none; color: var(--ink);
}
.form-block .hint { margin: 0 0 22px; color: var(--muted); font-size: .9rem; font-style: italic; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 5px;
  color: var(--muted);
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit; font-size: .97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(138, 90, 43, .12);
}
.field .invalid { border-color: #a33; background: #fbf1ee; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 32px;
  font: inherit; font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  border: 0; border-radius: 2px;
  cursor: pointer;
  transition: background .18s;
}
.btn:hover { background: var(--bronze); }
.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; font-style: italic; }
.status.ok { color: #2f6b45; }
.status.err { color: #a33; }

/* footer */
.base {
  margin-top: clamp(30px, 5vw, 50px);
  padding: 20px 0 42px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--bronze); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(30px, 5vw, 54px) clamp(20px, 4vw, 40px) 44px; }
.doc h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 4.6vw, 2.5rem); }
.stamp {
  display: block; margin: 0 0 28px;
  color: var(--muted);
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
}
.doc h2 {
  margin: 28px 0 8px;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 400;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #38332a; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 20px;
}
.doc-actions a {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze);
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 10px; }
  .note { padding-top: 0; }
  .note::before { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .base { flex-direction: column; }
}
