/**
 * yxzys.me — personal sheet
 * mono, monochrome, minimal — 860px single column
 */
/* _sg:yxzys_ */

body {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow,
.container--default { max-width: 860px; }

main { padding: 0 0 6rem; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 4rem;
}

main > section[id] { scroll-margin-top: 5rem; }

.section { margin: 0 0 4rem; }
.section--tight { margin-bottom: 2.5rem; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 20;
  text-decoration: none;
}

.skip:focus { left: 1rem; top: 1rem; }

.section__label {
  font-size: var(--text-badge);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: var(--text-section);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.section-lead {
  font-size: var(--text-code);
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* ═══ HEADER ═══ */

.site-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { width: 24px; height: 24px; filter: grayscale(1); }

.logo-text {
  font-size: var(--text-sub);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-text-thin { font-weight: 400; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-code);
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

/* ═══ HERO ═══ */

.hero {
  padding: 3rem 0 4rem;
}

.hero__tagline {
  font-size: var(--text-badge);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero__title [data-hero="name"] { display: block; }

.hero__title--light {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.hero__subtitle {
  font-size: var(--text-intro);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.75rem;
  max-width: 62ch;
}

.hero__meta {
  font-size: var(--text-caption);
  color: var(--faint);
  margin: 0;
}

/* ═══ PROOF / STATS ═══ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
}

.stat-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-card__value {
  display: block;
  font-size: var(--text-section);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stat-card__label {
  display: block;
  font-size: var(--text-badge);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.4rem;
}

/* ═══ RAILS + CARDS ═══ */

.rail { margin: 0 0 2.5rem; }

.rail-head { margin: 0 0 1.25rem; }

.rail-head__title {
  font-size: var(--text-sub);
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  min-height: 100%;
  transition: background var(--transition), border-color var(--transition);
}

.card:hover {
  background: var(--wash);
  border-color: var(--ink);
}

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--wash);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.card__body { padding: 1rem 1.15rem 1.15rem; }

.card__title {
  font-size: var(--text-sub);
  line-height: 1.35;
  margin: 0 0 0.4rem;
}

.card__desc {
  font-size: var(--text-code);
  color: var(--muted);
  margin: 0;
}

.card__badge,
.public-name {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--text-badge);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
}

/* ═══ PROCESS ═══ */

.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.process-step {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 1.25rem 1.25rem 0;
}

.process-step__title {
  font-size: var(--text-sub);
  line-height: 1.4;
  margin: 0 0 0.4rem;
}

.process-step__body {
  font-size: var(--text-code);
  color: var(--muted);
  margin: 0;
}

/* ═══ ABOUT + CONTACT ═══ */

.about-copy {
  font-size: var(--text-intro);
  color: var(--muted);
  margin: 0 0 2rem;
}

.about-copy p { margin: 0 0 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

.contact-form {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: var(--bg);
}

.contact-intro {
  font-size: var(--text-code);
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.6rem 0.75rem;
  font-size: var(--text-code);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.contact-form button[type="submit"] {
  justify-self: start;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-size: var(--text-button);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-form button:disabled { opacity: 0.6; cursor: wait; }

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: var(--text-caption);
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.boot-error {
  border: 1px solid var(--rule);
  background: var(--wash);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  font-size: var(--text-code);
}

/* ═══ FOOTER ═══ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  font-size: var(--text-caption);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--faint);
}

.footer-bottom a { color: var(--faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ═══ RESPONSIVE ═══ */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-header .container { flex-wrap: wrap; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .nav-links.open { display: flex; }

  .hero__title { font-size: 1.9rem; }

  .stats-grid,
  .cards,
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .contact-form { padding: 1rem 1.1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
