/* The Little Project: single page (first screen + contact section) */

:root {
  --bg: #fbf8f3;
  --bg-alt: #f3eee5;
  --surface: #ffffff;
  --text: #1f2a2e;
  --muted: #5a6568;
  --border: #d9cfbf;
  --border-soft: #e2d9cb;
  --accent: #2f6b4f;
  --accent-hover: #255a41;
  --accent-soft: #e2eee6;
  --error-soft: #f8e4dd;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 96px;
  --footer-h: 80px;
  --gutter: 80px;
  color-scheme: light;
}

@media (max-width: 1023px) { :root { --gutter: 32px; --header-h: 80px; } }
@media (max-width: 639px) { :root { --gutter: 16px; --header-h: 68px; } }

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }

h1, h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

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

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn svg { width: 20px; height: 20px; }

.btn-primary { height: 56px; padding: 0 28px; background: var(--accent); color: #fff; font-size: 1.125rem; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }

.btn-outline { height: 44px; padding: 0 22px; border-color: var(--border); color: var(--text); font-size: 1rem; }
.btn-outline:hover { border-color: var(--text); }

/* ---------- Header & footer ---------- */

.site-header { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-sm { font-size: 1.0625rem; gap: 10px; }
.brand-sm .brand-mark { width: 26px; height: 26px; }
@media (max-width: 639px) {
  .brand { font-size: 1.125rem; gap: 10px; }
  .brand-mark { width: 30px; height: 30px; }
}

.site-footer { background: var(--bg-alt); color: var(--muted); font-size: 0.9375rem; }
.footer-inner {
  min-height: var(--footer-h);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 16px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- First screen ---------- */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-bottom: 24px;
}

.hero-text { flex: 0 1 620px; }
.hero h1 { font-size: clamp(2.625rem, 5.15vw, 4.625rem); line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { max-width: 540px; margin-top: 28px; font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.55; color: var(--muted); }
.actions { display: flex; margin-top: 44px; }

.hero-art { flex: 0 1 640px; display: flex; justify-content: center; }
.hero-art img {
  width: auto;
  height: min(780px, calc(100svh - var(--header-h) - 40px));
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .hero { min-height: 0; flex-direction: column; align-items: flex-start; gap: 32px; padding-block: 24px 56px; }
  .hero-text { flex: none; }
  .hero-art { flex: none; align-self: center; align-items: center; width: 100%; }
  .hero-art img { width: min(100%, 460px); height: auto; }
}
@media (max-width: 639px) {
  .actions { margin-top: 32px; }
}

/* ---------- Contact ---------- */

.contact { background: var(--bg-alt); }

.contact-main {
  min-height: calc(100svh - var(--footer-h));
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center;
  padding-block: 64px;
}
@media (max-width: 1023px) {
  .contact-main { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 72px 56px; }
}

.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.contact h2 { margin-top: 16px; font-size: clamp(2.5rem, 4.75vw, 4.25rem); line-height: 1.05; }
.contact-lede { max-width: 480px; margin-top: 24px; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.55; color: var(--muted); }

.contact-email { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.contact-email-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-email a { font-size: 1.25rem; font-weight: 500; color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-email a:hover { color: var(--accent-hover); }

.form-card {
  display: grid; gap: 20px;
  padding: 40px; border-radius: 24px;
  background: var(--surface); box-shadow: 0 20px 50px rgb(31 42 46 / 0.08);
}
@media (max-width: 639px) { .form-card { padding: 24px; } }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 639px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; }

.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--border-soft); border-radius: 12px;
  background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { height: 150px; padding: 14px 16px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(47 107 79 / 0.2);
}

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select-wrap::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-footer .btn-primary { font-size: 1.0625rem; }
.form-note { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

.form-status { padding: 14px 16px; border-radius: 12px; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: var(--accent-soft); }
.form-status[data-state="error"] { background: var(--error-soft); }
.form-status a { color: inherit; font-weight: 600; }

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
