:root {
  --paper: #F6F5F1;
  --ink: #16161A;
  --muted: #4A4A50;
  --faint: #5A5A60;
  --rule: #DCDAD3;
  --card: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--faint); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.wordmark { text-decoration: none; font-weight: 700; font-size: 19px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; }

/* Hero */
.hero { padding-top: 160px; padding-bottom: 200px; }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.hero .thesis { margin: 36px 0 0; max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.ctas { margin-top: 56px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 4px; font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--paper); border: 0; }
.btn-solid:hover { background: #33333A; color: var(--paper); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Sections */
.band { border-top: 1px solid var(--rule); }
.eyebrow { margin: 0 0 48px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* Products */
.products { padding-top: 96px; padding-bottom: 112px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.product { background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.product-name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.product h2 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 400; }
.product p.desc { margin: 0; line-height: 1.6; color: var(--muted); }
.product a { margin-top: 12px; font-weight: 700; }

/* Contact */
.contact { padding-top: 96px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 320px; }
.contact-intro h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 400; }
.contact-intro p { margin: 20px 0 0; max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact-form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; }
.contact-form input { min-height: 48px; padding: 0 14px; }
.contact-form textarea { padding: 12px 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-form .btn { align-self: flex-start; padding: 0 30px; }
.form-status { margin: 0; font-size: 16px; }
.hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--faint); }

@media (max-width: 600px) {
  .hero { padding-top: 72px; padding-bottom: 96px; }
  .products, .contact { padding-top: 64px; padding-bottom: 80px; }
  .product { padding: 28px; box-shadow: 6px 6px 0 var(--ink); }
}

/* Legal and simple pages */
.page { padding-top: 64px; padding-bottom: 120px; max-width: 760px; }
.page h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 400; }
.page .updated { margin: 0 0 48px; color: var(--faint); font-size: 14px; }
.page h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 700; }
.page p, .page li { line-height: 1.65; color: var(--muted); }
.page ul { padding-left: 22px; }
