/* bytes studio — full-width ASCII console.
   Layout from the page edges, one accent, characters instead of boxes. */

:root {
  --bg:   #111111;
  --fg:   #d8d8d0;
  --dim:  #6b6b64;
  --acc:  #9fd67a;
  --line: #222222;

  --pad:  clamp(20px, 4vw, 72px);
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

pre, ul, li, p { margin: 0; font: inherit; }
ul { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--acc); color: var(--bg); }

:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }

/* ── Top console bar ─────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.bar__logo { font-size: 15px; letter-spacing: .04em; }
.bar__logo::before { content: "~/"; color: var(--dim); }

.bar__nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  margin-left: auto;
  color: var(--dim);
  font-size: 14px;
}

.bar__nav a { transition: color .12s linear; }
.bar__nav a::before { content: "./"; color: var(--line); }
.bar__nav a:hover { color: var(--fg); }

.bar__mail {
  margin-left: clamp(14px, 2.4vw, 32px);
  padding-left: clamp(14px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  transition: color .12s linear;
}

.bar__mail:hover { color: var(--acc); }

/* ── Grid ────────────────────────────────────────────────── */
.wrap {
  flex: 1;
  padding: 0 var(--pad);
}

/* every section spans the page, hero taller */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 10vh, 140px) 0 clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--line);
}

.art {
  grid-column: 1 / -1;
  color: var(--acc);
  font-size: clamp(10px, 2.2vw, 26px);
  line-height: 1.1;
  white-space: pre;
  overflow: hidden;
}

.hero__lead {
  margin-top: clamp(28px, 4vh, 48px);
  max-width: 46ch;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.45;
  color: var(--fg);
}

.cursor {
  margin-top: 28px;
  color: var(--dim);
}

.cur {
  margin-left: .6em;
  color: var(--fg);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.cta {
  align-self: end;
  justify-self: end;
  padding: 14px 28px;
  border: 1px solid var(--fg);
  font-size: 15px;
  white-space: nowrap;
  transition: background .12s linear, color .12s linear;
}

.cta:hover { background: var(--fg); color: var(--bg); }

/* ── Section blocks ──────────────────────────────────────── */
.block {
  display: grid;
  grid-template-columns: minmax(12ch, 22ch) 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(40px, 7vh, 88px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 64px;
}

.sec {
  color: var(--dim);
  padding-top: 4px;
}

.sec .rule {
  display: none;
}

/* rows */
.rows li {
  display: grid;
  grid-template-columns: 14ch 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 6px 0;
}

.k { color: var(--fg); }
.v { color: var(--dim); }
.y { color: var(--dim); font-size: 13px; white-space: nowrap; }

.ok { color: var(--acc); }

/* full-width rule after each section command */
.sec {
  position: relative;
  padding-bottom: 18px;
}

.sec::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rows a.v { transition: color .12s linear; }
.rows a.v:hover { color: var(--acc); }

/* services — three columns */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 64px);
}

.col__k {
  display: block;
  color: var(--fg);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.col__v {
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
  max-width: 24ch;
}

/* ── Contact console ─────────────────────────────────────── */
.console {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.console__form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px 20px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field .k { font-size: 13px; color: var(--dim); }
.field .k::before { content: "> "; color: var(--line); }

.field--wide { grid-column: 1 / -1; }

.field input,
.field select {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--outline, #2a2a2a);
  border-radius: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  caret-color: var(--acc);
  appearance: none;
}

.field select { cursor: pointer; }
.field select option { background: var(--bg); color: var(--fg); }

.field input::placeholder { color: #4a4a44; }

.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--acc);
}

.field input:invalid:not(:placeholder-shown) { border-bottom-color: #d77777; }

.send {
  padding: 14px 30px;
  border: 1px solid var(--fg);
  background: none;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  transition: background .12s linear, color .12s linear, opacity .12s linear;
}

.send:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.send:disabled { opacity: .4; cursor: progress; }

.form__status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  color: var(--dim);
  font-size: 14px;
}

.form__status.ok { color: var(--acc); }
.form__status.err { color: #d77777; }

.console__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.console__meta a { transition: color .12s linear; }
.console__meta a:hover { color: var(--acc); }

.console__meta .y { margin-right: 10px; }

/* ── Feed ────────────────────────────────────────────────── */
.rows--feed li {
  grid-template-columns: 6ch 1fr;
  gap: 16px;
  padding: 4px 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 20px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.foot__status { display: inline-flex; flex-wrap: wrap; gap: 0 6px; }
.foot .sep { color: var(--line); }
.foot .dim { color: var(--dim); }

.foot__nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}

.foot a { transition: color .12s linear; }
.foot a:hover { color: var(--fg); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; gap: 12px; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .cta { justify-self: start; }
  .bar__nav { display: none; }
  .bar__mail { margin-left: auto; border-left: 0; padding-left: 0; }
  .console__form { grid-template-columns: 1fr 1fr; }
  .console__form .send { justify-self: start; }
}

@media (max-width: 560px) {
  .art { display: none; }
  .rows li { grid-template-columns: 1fr auto; gap: 0 12px; }
  .rows .y { grid-column: 2; grid-row: 1; text-align: right; }
  .rows .v { grid-column: 1 / -1; padding-bottom: 2px; }
  .rows--feed li { grid-template-columns: 6ch 1fr; }
  .rows--feed .v { grid-column: 2; }
  .console__form { grid-template-columns: 1fr; }
  .foot__nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
