/* Neobrutalism: 2px ink borders, zero-blur hard shadows, square corners.
   Fonts are system stacks to keep the site self-contained.
   TODO (optional): swap --font-head/--font-body/--font-mono for Space Grotesk / Onest / Space Mono via Google Fonts. */
:root {
  --ink: #111;
  --paper: #fffdf5;
  --yellow: #ffd600;
  --ink-soft: #3a3a3a;
  --border: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --topbar-h: 3.5rem;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --font-head: "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

@media (max-width: 600px) {
  :root { --shadow: 3px 3px 0 var(--ink); --shadow-lg: 5px 5px 0 var(--ink); }
}

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

/* make the hidden attribute win over component display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }
h1, h2 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
p { margin: 0 0 1rem; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  /* align logo and button with the page column */
  padding: 0 max(var(--pad), calc((100% - var(--max)) / 2));
  background: var(--paper);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand span { background: var(--yellow); padding: 0 0.15rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--ink);
  color: var(--yellow);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
  border-radius: 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn::after { content: " \2192"; }
.btn:hover, .btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.topbar .btn { background: var(--yellow); color: var(--ink); }
.btn--small { padding: 0.35rem 0.9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn--small:hover, .btn--small:focus-visible { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn--small:active { transform: translate(2px, 2px); box-shadow: none; }

a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.hero a:focus-visible, .contact a:focus-visible, .contact input:focus-visible, .contact textarea:focus-visible { outline-color: var(--ink); }
.footer a:focus-visible { outline-color: var(--yellow); }

/* Hero: "Stacked neo" – yellow block (headline, facts, CTA), then framed photo below */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  background: var(--yellow);
  border-bottom: var(--border);
  padding: clamp(2rem, 6vw, 5rem) var(--pad);
}
.hero > * { width: 100%; max-width: var(--max); margin-inline: auto; }
.hero__text { max-width: var(--max); margin-bottom: 2.5rem; }
.hero__text > h1, .hero__text > .lead { max-width: 40rem; }
.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.2rem 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.lead { font-size: 1.25rem; margin-bottom: 1.75rem; }
.hero__mail { font-weight: 600; overflow-wrap: anywhere; }
.hero__mail a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.hero__mail a:hover, .hero__mail a:focus-visible { background: var(--ink); color: var(--yellow); text-decoration: none; }
.hl { background: var(--paper); border: var(--border); padding: 0 0.3rem; white-space: nowrap; }

.placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lg);
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 22px,
    #222 22px 44px
  );
}

/* Photo section */
.photo { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--pad); }
.photo__frame { min-height: clamp(240px, 45vw, 480px); }
.photo__frame img { display: block; width: 100%; height: auto; }

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.fact {
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}
.fact__label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}
.fact__value { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; }

/* Details */
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
}
/* max-width includes the side padding so content lines up with the hero column */
.details {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding:clamp(1.5rem, 5vw, 3rem) var(--pad) clamp(2.5rem, 7vw, 5rem); }
.details__grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .details__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.specs { margin: 0; }
.specs div { padding: 0.9rem 0; border-top: var(--border); }
.specs div:last-child { border-bottom: var(--border); }
.specs dt { font-family: var(--font-mono); font-weight: 700; }
.specs dd { margin: 0; color: var(--ink-soft); }
.todo { background: var(--yellow); display: inline-block; padding: 0 0.4rem; color: var(--ink); font-weight: 600; border: var(--border); }

/* Contact */
.contact {
  background: var(--yellow);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad);
}
.contact__inner { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .contact__inner { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.contact__mail { font-weight: 600; }

form {
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
label { display: grid; gap: 0.3rem; font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }
input, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.hp { position: absolute; left: -9999px; }
form .btn { justify-self: start; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

#form-status { margin: 0; font-weight: 700; min-height: 1.6em; }
#form-status.is-success { background: var(--ink); color: var(--yellow); padding: 0.6rem 0.9rem; border: var(--border); }
#form-status.is-error { background: #fff; color: #9b1c1c; border: 2px solid #9b1c1c; padding: 0.6rem 0.9rem; }

/* Footer: one slim row, same column as the page */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 1.5rem var(--pad);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer p { margin: 0; }
.footer a { color: var(--yellow); font-weight: 700; text-underline-offset: 3px; }
.footer a:hover { background: var(--yellow); color: var(--ink); }
.footer__top { text-decoration: none; border: 2px solid var(--yellow); padding: 0.2rem 0.7rem; }

/* Sticky bar: bottom bar on phones only (desktop already has the sticky top bar) */
.stickybar { display: none; }
@media (max-width: 720px) {
  .stickybar {
    display: flex;
    justify-content: space-between;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    padding: 0.8rem var(--pad);
    background: var(--ink);
    color: var(--yellow);
    border-top: var(--border);
    font-family: var(--font-mono);
    text-decoration: none;
  }
  .stickybar:focus-visible { outline-color: var(--yellow); outline-offset: -6px; }
  .footer { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
