/* hintze.dev — a terminal window, matching the GitHub profile card. */

:root {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-raised: #1c232d;
  --border: #2a323d;
  --rule: #3f4c5a;

  --text: #d9dde3;
  --text-strong: #e6e9ed;
  --text-soft: #b5bdc7;
  --text-muted: #8b96a3;

  --accent: #d9a05b;   /* keys, labels, primary button */
  --value: #9cc0e0;    /* values and links */
  --ok: #8fc79a;       /* prompt, "shipped", "now" */
  --dev: #b8a4d6;      /* "in-dev" */
  --warn: #d68c8c;
  --steel: #6a8fae;
  --red: #e5534b;

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --label-column: 156px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, ol { margin: 0; }

a {
  color: var(--value);
  text-decoration: none;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Window ---------------------------------------------------------------- */

.page { padding: 40px 16px 56px; }

.window {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
}

.titlebar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.titlebar__dots { display: flex; gap: 8px; }

.dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot--red { background: var(--red); }
.dot--yellow { background: var(--accent); }
.dot--green { background: var(--ok); }

.titlebar__path { color: var(--text-muted); }

.titlebar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14px;
}

.titlebar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

/* Hero: portrait column + whoami card ------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 40px 64px;
  padding: 56px var(--gutter);
}

.hero__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero__name {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-strong);
}

.hero__handle {
  margin-top: 6px;
  color: var(--value);
}

.hero__portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--surface);
}

.hero__origin-label {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero__origin-title {
  margin-top: 8px;
  color: var(--text-strong);
}

.hero__origin-lines {
  margin-top: 4px;
  color: var(--text-muted);
}

.swatches { display: flex; }

.swatch {
  display: block;
  width: 34px;
  height: 20px;
}

.swatch--text { background: var(--text); }
.swatch--accent { background: var(--accent); }
.swatch--value { background: var(--value); }
.swatch--ok { background: var(--ok); }
.swatch--dev { background: var(--dev); }
.swatch--warn { background: var(--warn); }
.swatch--steel { background: var(--steel); }
.swatch--rule { background: var(--rule); }

.hero__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.whoami {
  display: flex;
  align-items: center;
  gap: 20px;
}

.whoami__user {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-strong);
}

.whoami__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.intro__greeting {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-strong);
}

.intro__body { color: var(--text-soft); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--text);
}

.button:hover {
  border-color: var(--text-muted);
  color: var(--text-strong);
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
  font-weight: 700;
}

.button--primary:hover {
  background: #e4b276;
  border-color: #e4b276;
  color: var(--surface);
}

/* Key/value lists (whoami card, toolkit) -------------------------------- */

.kv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kv__row {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  align-items: baseline;
}

.kv dt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-right: 18px;
  min-width: 0;
}

.kv__key {
  color: var(--accent);
  white-space: nowrap;
}

.kv__leader {
  flex: 1;
  border-bottom: 1px dashed var(--rule);
}

.kv dd { color: var(--value); }

/* Sections -------------------------------------------------------------- */

.section {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--border);
  scroll-margin-top: 16px;
}

.section--last { padding-bottom: 56px; }

.command {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

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

.command__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section__note {
  margin: -16px 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ls -l ~/projects */

.project {
  display: grid;
  grid-template-columns: var(--label-column) minmax(0, 1fr) minmax(180px, 240px);
  gap: 6px 28px;
  padding: 18px 0;
  border-top: 1px dashed var(--border);
}

.project__meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
}

.status--live { color: var(--ok); }
.status--dev { color: var(--dev); }

.project__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
}

.project__title a { color: inherit; }

.project__description {
  margin-top: 4px;
  color: var(--text-soft);
}

.project__stack {
  font-size: 14px;
  color: var(--value);
}

/* cat ~/history.log */

.history {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.history__entry {
  display: grid;
  grid-template-columns: var(--label-column) minmax(0, 1fr);
  gap: 4px 28px;
}

.history__when { color: var(--text-muted); }

.history__body {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}

.history__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.history__company {
  font-size: 16px;
  color: var(--text-strong);
}

.history__role { color: var(--accent); }
.history__now { color: var(--ok); }

.history__description {
  margin-top: 6px;
  max-width: 760px;
  color: var(--text-soft);
}

/* ls ~/building/ */

.building {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px 48px;
}

.building__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.building__description {
  margin-top: 6px;
  color: var(--text-soft);
}

/* cat ~/away-from-keyboard.txt */

.away__hobbies { color: var(--value); }

.away__note {
  margin-top: 8px;
  max-width: 760px;
  color: var(--text-soft);
}

/* ./connect */

.connect__intro {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--text-soft);
}

.connect {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.connect__link {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 10px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.connect__link:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}

.connect__name {
  font-size: 13px;
  color: var(--accent);
}

.connect__handle {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

/* Vim statusline -------------------------------------------------------- */

.statusline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  background: var(--surface-raised);
  font-size: 13px;
  color: var(--text-soft);
}

.statusline__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.statusline__mode {
  padding: 6px 14px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 700;
}

.statusline__right {
  padding: 6px 16px;
  color: var(--text-muted);
}

/* Narrow screens -------------------------------------------------------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__id { max-width: 400px; margin: 0 auto; }
  .project { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .page { padding: 0; }
  .window { border: 0; border-radius: 0; }
  .history__entry { grid-template-columns: minmax(0, 1fr); }
  .kv__row { grid-template-columns: minmax(0, 1fr); }
  .kv__leader { display: none; }
  .kv dd { padding-left: 2ch; }
  .kv { gap: 10px; }
  .hero__name { font-size: 28px; }
  .statusline__right { display: none; }
}
