/* TesselMaker landing page. Brand system per branding/ and the
   marketing style guide: ink #0E4F52, paper #F5F1EA, text #23201B.
   WCAG 2.2 AA: min text 13px, contrast >= 4.5:1, no animation. */

:root {
  --ink: #0E4F52;
  --paper: #F5F1EA;
  --stone: #E4DDD0;
  --text: #23201B;
  --muted: #5A554C;
  --card: #FFFFFF;
  --accent: #A44D36;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 550;
  line-height: 1.15;
  color: var(--ink);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--stone);
  padding: 18px 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--muted);
}

/* Hero */
.hero { padding: 64px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(34px, 4.5vw, 52px); }
.lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
}
.hero-cta { margin-top: 28px; }
.hero-note {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--muted);
}
.hero-figure img {
  border-radius: 12px;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  cursor: pointer;
}
.button:hover { background: #0b3f42; }

/* Products */
.products { padding: 56px 0; }
.products h2, .story h2 { font-size: clamp(26px, 3vw, 34px); }
.card-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stone);
}
.card h3 {
  font-size: 24px;
  padding: 20px 20px 0;
}
.card .spec {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 20px 0;
}
.card p:not(.spec) {
  padding: 12px 20px 22px;
  font-size: 15px;
  color: var(--text);
}
.disclosure {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* Story */
.story {
  background: var(--card);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 64px 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
}
.story p { margin-top: 16px; }
.colors-h { font-size: 22px; }
.swatches {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.swatches li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}
.dot-line { border: 1px solid var(--stone); }

/* Signup */
.signup { padding: 64px 0; }
.signup-inner { max-width: 560px; text-align: center; }
.signup h2 { font-size: clamp(26px, 3vw, 34px); }
.signup p { margin-top: 12px; color: var(--muted); }
.form-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.form-row .field {
  flex: 1 1 260px;
  text-align: left;
}
.form-row .field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-row input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}
.form-row input::placeholder { color: var(--muted); }
.hidden-field { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stone);
  padding: 24px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 40px 0; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}
