/* Public landing — README: the page reads like a well-kept readme.md.
   Warm paper ground, teal accent, sans body with mono for structure marks,
   chips, and the top bar. The skin is swappable: this file + landing.php
   is the whole surface. */
:root {
  --t-bg: #fffdf8;
  --t-ink: #26281f;
  --t-dim: #93907f;
  --t-mid: #6d6a5b;
  --t-teal: #0f766e;
  --t-teal-dark: #0b5d57;
  --t-line: #ece8d9;
  --t-chip: #f3f0e4;
  --t-chip-line: #e5e0cd;
  --t-error: #b3261e;
  --t-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --t-sans: system-ui, "Segoe UI", -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--t-bg); }
body.term {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--t-bg); color: var(--t-ink);
  font: 16px/1.7 var(--t-sans);
}
a { color: var(--t-teal); text-decoration: none; }
.t-login { color: var(--t-teal); font-weight: 600; }
.t-login:hover { color: var(--t-teal-dark); }
.t-back { display: inline-block; border: 1px solid var(--t-teal); color: var(--t-teal);
  padding: 8px 16px; border-radius: 6px; }
.t-back:hover { background: rgba(15, 118, 110, .07); }

.term__bar, .term__status {
  display: flex; gap: 16px; padding: 9px 20px; font-size: 12px;
  color: var(--t-dim); font-family: var(--t-mono);
}
.term__bar { border-bottom: 1px solid var(--t-line); }
.term__bar span { white-space: nowrap; }
.term__bar-file { color: var(--t-teal); }
.term__bar-right { margin-left: auto; }
.term__status { border-top: 1px solid var(--t-line); margin-top: auto; flex-wrap: wrap; }
.term__status span + span::before { content: "·"; margin-right: 16px; color: var(--t-chip-line); }

.term__body { width: 100%; max-width: 720px; margin: 0 auto; padding: 52px 20px 72px; }

.t-block { margin-bottom: 44px; }

/* markdown structure marks: literal # / ## in a muted mono */
.t-mark { color: #b3ae99; font-family: var(--t-mono); font-weight: 400; }

.t-handle { margin: 0; font-size: clamp(32px, 7vw, 46px); font-weight: 800;
  letter-spacing: -.5px; text-wrap: balance; }
.t-handle .t-mark { font-size: .8em; }
.t-tagline { color: var(--t-mid); margin: 8px 0 0; font-size: 18px; }

.t-head { margin: 0 0 12px; font-size: 20px; font-weight: 700; }

.t-out { margin: 0; max-width: 62ch; }
.t-out--dim { color: var(--t-dim); }
.t-contact-intro { margin-bottom: 14px; }

.t-checks { list-style: none; margin: 14px 0 0; padding: 0; }
.t-checks li { margin: 2px 0; }
.t-checks li::before { content: "✓ "; color: var(--t-teal); font-weight: 700; }

.t-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.t-skills li { font-family: var(--t-mono); font-size: 13px; background: var(--t-chip);
  border: 1px solid var(--t-chip-line); border-radius: 999px; padding: 4px 12px; }

.t-error { color: var(--t-error); margin: 0 0 14px; }
.t-sent { border: 1px dashed var(--t-chip-line); border-radius: 8px; padding: 16px 18px; max-width: 60ch; }
.t-sent p { margin: 0; }
.t-sent p:first-child { color: var(--t-teal); font-weight: 600; }

.t-form { max-width: 60ch; }
.t-hp { position: absolute; left: -9999px; top: -9999px; }
.t-row { display: flex; gap: 14px; }
.t-row .t-field { flex: 1; }
@media (max-width: 480px) { .t-row { flex-direction: column; gap: 0; } }
.t-field { margin-bottom: 14px; }
.t-field label { display: block; color: var(--t-mid); font-size: 14px; margin-bottom: 4px; }
.t-field input, .t-field textarea {
  width: 100%; background: #fff; border: 1px solid #e0dbc8; border-radius: 6px;
  color: var(--t-ink); font: inherit; padding: 9px 11px;
}
.t-field input:focus, .t-field textarea:focus, .t-send:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .25); border-color: var(--t-teal);
}
.t-field textarea { resize: vertical; }

.t-send {
  background: var(--t-teal); border: 0; color: #fff; font: inherit; font-weight: 700;
  padding: 11px 22px; border-radius: 6px; cursor: pointer;
}
.t-send:hover { background: var(--t-teal-dark); }

/* modals (native <dialog>: esc closes; js closes on backdrop click) */
.t-modal { background: var(--t-bg); color: var(--t-ink); border: 1px solid #e0dbc8;
  border-radius: 10px; padding: 26px 30px; max-width: 33rem; width: calc(100% - 40px);
  font: 16px/1.7 var(--t-sans); box-shadow: 0 18px 50px rgba(40, 38, 25, .16); }
.t-modal::backdrop { background: rgba(38, 40, 31, .4); backdrop-filter: blur(2px); }
.t-modal[open] { animation: t-modal-in .18s ease-out; }
.t-modal h3 { margin: 0 0 6px; font-size: 18px; }
.t-modal p { margin: 6px 0 0; }
.t-modal code { font-family: var(--t-mono); font-size: 14px; background: var(--t-chip);
  border: 1px solid var(--t-chip-line); border-radius: 4px; padding: 1px 6px; }
.t-modal__hint { font-size: 13px; margin-top: 14px; }
@keyframes t-modal-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .t-modal[open] { animation: none; } }
