/* Good Soil Media: "night garden" theme. No framework; this is the whole stylesheet. */

:root {
  --bg: #07140a;
  --surface: #0e2213;
  --line: #1a3320;
  --line-strong: #23412a;
  --field: #2b4a31;
  --text: #e7f3e4;
  --soft: #c4dabf;
  --muted: #a9c2a5;
  --dim: #7e9a7a;
  --accent: #5be06f;
  --accent-hover: #8bf09a;
  --numeral: #10291a;
  --danger: #ffb4a8;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 32px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.accent { color: var(--accent); }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--bg); }

/* --- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border-color: #355a3c; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-sm { min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 15px; }

/* --- Header / footer ------------------------------------------------------------ */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.site-header .logo img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.site-footer .logo img { height: 20px; width: auto; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a, .footer-links button { color: var(--dim); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }

/* --- Hero ------------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 7vw, 72px); padding-bottom: 40px; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.04em; max-width: 1100px; margin-bottom: 32px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-end; justify-content: space-between; }
.hero-row p { flex: 1 1 420px; max-width: 600px; font-size: 19px; color: var(--muted); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Browser-window frames */
.window { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-strong); min-width: 0; }
.window-bar .dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--field); }
.window-bar .mono { margin-left: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window img { width: 100%; }
a.window { display: block; text-decoration: none; }

.hero-shots { position: relative; padding-top: 56px; padding-bottom: 120px; }
.hero-shots .window { box-shadow: 0 0 0 6px var(--surface), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.hero-shots .window.back { width: 80%; }
.hero-shots .window.front { position: absolute; right: var(--pad); bottom: 0; width: 46%; box-shadow: 0 0 0 6px var(--surface), 0 40px 80px -20px rgba(0, 0, 0, .9); }
.hero-shots.single { padding-bottom: 0; }
.hero-shots.single .window.back { width: 100%; }
.login-tag { position: absolute; left: var(--pad); bottom: 36px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--soft); }
@media (max-width: 760px) {
  .hero-shots { padding-bottom: 0; }
  .hero-shots .window.back { width: 100%; }
  .hero-shots .window.front { position: relative; right: auto; width: 82%; margin: -18% 0 0 auto; }
  .login-tag { position: static; display: inline-block; margin-top: 18px; }
}

/* --- Verse --------------------------------------------------------------------------- */
.verse { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); margin-top: 40px; }
.verse-numerals {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4vw;
  font: 700 clamp(80px, 17vw, 260px)/1 var(--display); letter-spacing: -0.05em; color: var(--numeral);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.verse-numerals span:nth-child(2) { font-size: .77em; }
.verse-numerals span:nth-child(3) { font-size: .57em; }
.verse .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); }
.verse .leaf { width: 72px; height: 72px; }
.verse blockquote { flex: 1 1 560px; margin: 0; }
.verse blockquote p { font: 500 clamp(24px, 3vw, 34px)/1.3 var(--display); letter-spacing: -0.01em; margin-bottom: 14px; }

/* --- Work -------------------------------------------------------------------------------- */
.section { padding-top: clamp(72px, 10vw, 112px); padding-bottom: clamp(72px, 10vw, 112px); }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(40px, 5vw, 56px); }
.section-head p { color: var(--muted); max-width: 460px; }

.project + .project { margin-top: 72px; }
.project-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding: 28px 0 20px; border-top: 1px solid var(--line); }
.project-head h3 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; }
.project-head h3 a { color: var(--text); text-decoration: none; }
.project-head h3 a:hover { color: var(--accent); }
.project-num { color: var(--accent); margin-right: 14px; font-size: 15px; vertical-align: middle; }
.project-links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-weight: 600; }
.project-links a { text-decoration: none; padding: 10px 0; }
.project-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project-shots a { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .15s ease; }
.project-shots a:hover { border-color: var(--accent); }
.project-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.tags li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; color: var(--soft); }

/* --- About --------------------------------------------------------------------------------- */
.about { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.about img { width: 280px; height: 320px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line-strong); }
.about-text { flex: 1 1 460px; }
.about-text h2 { font-size: clamp(34px, 4vw, 44px); letter-spacing: -0.02em; margin: 16px 0 20px; }
.about-text p { font-size: 18px; line-height: 1.7; color: var(--soft); }
.about-text p + p { margin-top: 14px; }

/* --- Contact -------------------------------------------------------------------------------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.contact-intro { flex: 1 1 340px; }
.contact-intro h2 { font-size: clamp(40px, 5vw, 56px); line-height: 1; margin-bottom: 20px; }
.contact-intro p { color: var(--muted); }
.contact-form { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 16px; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }

.field { display: grid; gap: 8px; }
.field > label, .field legend { font: 500 13px/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea {
  width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--field);
  background: var(--bg); color: var(--text); font: 16px/1.5 var(--body);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 224, 111, .2); }
.field .error { color: var(--danger); font-size: 14px; }
.field fieldset, fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Radio choices drawn as pills */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choices div { display: contents; }
.choices label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--field); border-radius: 999px; background: var(--bg); color: var(--soft); font-size: 15px; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label:has(input:checked) { border-color: var(--accent); background: rgba(91, 224, 111, .12); color: var(--text); }
.choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); }
.notice.success { border-color: var(--accent); }
.notice.warning { border-color: var(--danger); }

/* --- Tour page ------------------------------------------------------------------------------- */
.tour-hero { padding-top: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; color: var(--dim); text-decoration: none; padding: 10px 0; }
.back-link:hover { color: var(--accent); }
.tour-hero .eyebrow { margin: 32px 0 16px; }
.tour-hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; margin-bottom: 20px; }
.tour-hero .lead { color: var(--muted); font-size: 19px; max-width: 62ch; }
.tour-hero .hero-row { margin-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.fact strong { display: block; font: 700 32px/1.1 var(--display); color: var(--text); }
.fact span { color: var(--dim); }

.tour-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.tour-nav { flex: 0 0 260px; position: sticky; top: 24px; }
.tour-nav ol { list-style: none; margin: 16px 0 0; padding: 0; }
.tour-nav a { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.tour-nav a:hover { color: var(--text); background: var(--surface); }
.tour-nav a.active { color: var(--text); background: var(--surface); border-left-color: var(--accent); }
.tour-nav .num { color: var(--dim); }
.tour-nav a.active .num { color: var(--accent); }
.tour-steps { flex: 999 1 560px; min-width: 0; }
.tour-step { scroll-margin-top: 24px; }
.tour-step + .tour-step { margin-top: 80px; }
.tour-step .window a { display: block; }
.step-caption { margin-top: 24px; }
.step-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.badge { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 4px 10px; }
.step-caption h2 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-caption p { color: var(--muted); max-width: 62ch; }
@media (max-width: 960px) { .tour-nav { display: none; } }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.band h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.band p { color: var(--muted); max-width: 60ch; margin: 0 auto 28px; }

/* --- Small pages (portfolio, 404, login) ---------------------------------------------------------- */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); margin: 16px 0; }
.page-head p { color: var(--muted); max-width: 60ch; }
.centered { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.centered h1 { font-size: clamp(64px, 12vw, 140px); color: var(--accent); }
.centered p { color: var(--muted); margin: 12px 0 28px; }
.card { max-width: 440px; margin: 72px auto; padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.card h1 { font-size: 36px; margin-bottom: 24px; }
.card .field + .field { margin-top: 16px; }
.card .btn { width: 100%; margin-top: 24px; }
.card dl { margin: 0; display: grid; gap: 12px; }
.card dt { font: 500 13px var(--mono); color: var(--dim); }
.card dd { margin: 0; }
