/* ---------------------------------------------------------
   Sublimate — single-page marketing site
   Dark, minimal. Jost 200/300/400. No frameworks.
--------------------------------------------------------- */

:root {
  --bg: #0a0a0a;
  --text: #c8c8c8;       /* body text — ~11.8:1 against --bg */
  --text-dim: #999999;   /* dimmest allowed secondary text — ~6.9:1 against --bg */
  --text-bright: #ffffff;
  --border: #333333;
  --focus-ring: #ffffff;
}

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

html {
  background: var(--bg);
}

body {
  position: relative; /* the corner nav is absolute against this */
  /* Column flex + `main { flex: 1 }` keeps the footer at the bottom of the
     viewport on the short pages (contact, thanks, 404) instead of floating
     partway up a screen of black. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

a {
  color: var(--text-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

/* Visually hidden but accessible — standard clip pattern */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Hero ---------------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 20px;
  gap: 2rem;
}

/* The wordmark sits in a <picture> so the heavier small cut can take over
   on phones; the sizing therefore belongs to the wrapper, which is the
   flex item, not to the <img> inside it. */
.logo-wrap {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.tagline {
  margin: 0;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--text-bright);
}

.description {
  margin: 0 auto;
  max-width: 600px;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
}

.confirm {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.6;
  color: var(--text-bright);
  max-width: 600px;
}

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

.contact {
  padding: 7rem 20px 6rem; /* top clears the corner nav */
  max-width: 480px;
  margin: 0 auto;
}

.contact h1 {
  text-align: center;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-bright);
  margin: 0 0 3rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

label {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-weight: 300;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  border-radius: 2px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-color: var(--focus-ring);
}

button[type="submit"] {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.9rem 3rem;
  background: transparent;
  border: 1px solid var(--text-bright);
  color: var(--text-bright);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button[type="submit"]:hover {
  background: var(--text-bright);
  color: var(--bg);
}

/* ---------------- Footer ---------------- */

footer {
  text-align: center;
  padding: 2.5rem 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

footer p {
  margin: 0;
}

/* ---------------- Small screens ---------------- */

@media (max-width: 600px) {
  .logo-wrap {
    max-width: 85vw;
  }

  .hero {
    padding: 3rem 20px;
    gap: 1.5rem;
  }

  .contact {
    padding: 6rem 20px 4rem;
  }
}

/* ---------------- Nav ---------------- */

/* The site's only navigation: one link in the top-left corner. Absolute rather
   than fixed, so it scrolls away with the top of the page instead of sitting
   over the form on a phone. The links are rooted (`/contact.html`, not
   `contact.html`) because 404.html is served at deep URLs too, where a
   relative href would resolve against the wrong directory. */
.site-nav {
  position: absolute;
  top: 1.75rem;
  left: 20px;
  z-index: 1;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text-bright);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

/* The contact page's link home is the wordmark, not the name in type. It is a
   heavier cut of the same raster the hero shows (see tools/build-wordmark-raster.py),
   because the hero's hairlines vanish at this width. Dimmed and brightened on
   hover like the text link it replaces; no underline, since that draws under an
   image as a stray rule. */
.site-nav-home {
  display: inline-block;
  line-height: 0;
  opacity: 0.72;
}

.site-nav-home:hover {
  opacity: 1;
  text-decoration: none;
}

.site-nav-mark {
  display: block;
  width: 140px;
  height: auto;
}
