/*
  Ripen stealth page. Placeholder design until the brand kit lands (due Nov 30).
  Everything the brand kit will replace is in the two :root blocks below.
*/

:root {
  color-scheme: light dark;

  /* Colour: light */
  --bg: #f6f0e4;
  --surface: #fffaf0;
  --ink: #23201a;
  --ink-soft: #5a5244;
  --line: #8c8170;
  --accent: #a8401b;
  --on-accent: #ffffff;
  --glow: rgb(168 64 27 / 0.1);

  /* Type */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-base: 1.0625rem;
  --text-small: 0.9375rem;
  --leading: 1.6;

  /* Shape */
  --radius: 10px;
  --radius-lg: 20px;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191613;
    --surface: #231f1a;
    --ink: #f1e9dc;
    --ink-soft: #b9ae9c;
    --line: #8a7f6f;
    --accent: #f0956c;
    --on-accent: #1b120c;
    --glow: rgb(240 149 108 / 0.08);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(60rem 40rem at 90% -10%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout */

.site-header,
.layout,
.site-footer {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.site-header {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin-left: 0.14em;
  border-radius: 50%;
  background: var(--accent);
}

.layout {
  flex: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(1rem, 4vw, 3.5rem) clamp(3rem, 8vw, 6rem);
  align-items: start;
}

@media (min-width: 58rem) {
  .layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* Pitch */

.eyebrow {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.2rem + 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.problem {
  max-width: var(--measure);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-left: 1.125rem;
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 0.875rem;
  font-size: 1.125rem;
}

/* Waitlist */

.waitlist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.waitlist-intro {
  margin-top: 0.625rem;
  color: var(--ink-soft);
}

.notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.waitlist-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.125rem;
}

.field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.field-row {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 30rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

label {
  font-size: var(--text-small);
  font-weight: 600;
}

.req,
.opt,
.hint,
.fineprint {
  color: var(--ink-soft);
  font-weight: 400;
}

.hint,
.fineprint {
  font-size: 0.875rem;
}

input,
select,
button {
  font: inherit;
  color: inherit;
}

input,
select {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input:focus-visible,
select:focus-visible {
  outline-offset: 1px;
  border-radius: var(--radius);
}

button[type="submit"] {
  min-height: 3rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.08);
}

button[type="submit"]:focus-visible {
  border-radius: var(--radius);
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg);
}

.form-status:focus-visible {
  border-radius: var(--radius);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--text-small);
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link {
    transition: top 0.15s ease;
  }
}
