/* The public "Become a Damata partner" page (D013). Mobile first (390 px), no scripts.
   Colors and type follow damata.coffee (cream #f2ede3 / ink #2a2520 / coffee #9B6F47; Cormorant
   Garamond headings, Inter body) with system fallbacks instead of loading webfonts. */
:root {
  --bg: #f2ede3;
  --panel: #fbf8f1;
  --ink: #2a2520;
  --subtle: #5c5348;
  --muted: #8a7f71;
  --line: #e6dfcf;
  --accent: #9b6f47;
  --dark: #2a2520;
  --error: #a1261b;
  --error-bg: #fbe5e2;
  --radius: 12px;
  font-size: 17px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.public {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
/* text links keep their place in the line but get a finger-sized hit area */
main a:not(.button), footer.site a { padding: 12px 8px; margin: -12px -8px; }

header.site { border-bottom: 1px solid var(--line); background: var(--panel); }
header.site .wrap { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.wordmark {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  padding: 10px 8px; margin: -10px -8px;   /* finger-sized without moving the header line */
}
header.site .tag { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; }
header.site .login { margin: -10px -8px -10px auto; padding: 10px 8px; font-size: 0.95rem; }

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 700; line-height: 1.15; margin: 0 0 12px;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.5rem; margin-top: 8px; }
.hero { padding: 40px 0 8px; }
.hero p { font-size: 1.08rem; color: var(--subtle); max-width: 58ch; }
.hero.thanks { padding-bottom: 48px; }

.steps { padding: 20px 0 4px; }
.steps ol { margin: 0; padding: 0 0 0 1.2em; }
.steps li { margin: 8px 0; color: var(--subtle); }
.steps li strong { color: var(--ink); }

.apply { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 22px 20px 26px; margin: 24px 0 40px; }
form label { display: block; margin: 14px 0 0; font-weight: 600; font-size: 0.95rem; }
form label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], select, textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 70px; }
select { appearance: auto; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 16px 0 0; padding: 10px 12px 14px; }
legend { font-weight: 600; font-size: 0.95rem; padding: 0 4px; }
label.choice { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; margin: 2px 0; }
label.choice input { width: 22px; height: 22px; min-height: 0; margin: 0; flex: none; }
label.consent { margin-top: 18px; font-weight: 600; }
button, .button {
  display: inline-block; margin-top: 18px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; color: #fff; background: var(--dark);
  border: 1px solid var(--dark); border-radius: 999px; padding: 12px 28px; min-height: 48px;
}
button:hover, .button:hover { background: #3b342b; }
.fineprint { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.notice { background: var(--error-bg); color: var(--error); border-radius: 8px; padding: 12px 14px; margin: 0 0 8px; }
.field-error { display: block; color: var(--error); font-weight: 400; font-size: 0.9rem; margin-top: 4px; }

/* the honeypot: off-screen for people, a normal field for bots */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy h2 { font-size: 1.2rem; margin-top: 22px; }
.privacy { padding-bottom: 40px; max-width: 62ch; }

footer.site { border-top: 1px solid var(--line); background: var(--panel); }
footer.site .wrap { padding-top: 16px; padding-bottom: 20px; color: var(--muted); font-size: 0.95rem; }

@media (min-width: 700px) {
  h1 { font-size: 3rem; }
  .hero { padding-top: 56px; }
  .apply { padding: 30px 32px 34px; }
}
