/* Hallmark v2.0.0 | mode: custom | theme: 1-bit navy terminal | fonts: VT323 */
/* critique: mobile side-by-side figure+intro with full-width 16px+ work list preserves desktop art direction without shrinking text below readable scale */

:root {
  color-scheme: dark;
  --bg: #0b162c;
  --ink: #f1f1f1;
  --ink-body: rgb(241 241 241 / 0.84);
  --ink-muted: rgb(241 241 241 / 0.58);
  --ink-faint: rgb(241 241 241 / 0.18);
  --row-hover: rgb(241 241 241 / 0.08);
  --font-pixel: "VT323", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
p {
  margin: 0;
  font-weight: 400;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: var(--row-hover);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Mobile (< 680px): figure stays side-by-side with head + bio; work & footer span full width at readable 16px-20px scale */
.stage {
  width: 100%;
  max-width: 480px;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}

.content {
  display: contents;
}

.figure {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-self: center;
}

.logo {
  display: block;
  width: 72px;
  max-width: 100%;
  height: auto;
  color: var(--ink);
}

.head {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ink-faint);
  min-width: 0;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.head h1 {
  font-size: 36px;
  line-height: 0.92;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

.blanc-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  color: var(--ink-body);
  opacity: 0.85;
  text-decoration: none;
}

.blanc-link:hover,
.blanc-link:focus-visible {
  color: var(--ink);
  opacity: 1;
}

.blanc-logo {
  display: block;
  width: 40px;
  height: auto;
}

.meta {
  font-size: 16px;
  line-height: 20px;
  color: var(--ink-muted);
}

.bio {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  min-width: 0;
}

.bio p {
  font-size: 18px;
  line-height: 22px;
  color: var(--ink-body);
}

/* Selected work spans full mobile width for comfortable 16px-20px readability */
.work {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.section-label {
  font-size: 16px;
  line-height: 20px;
  color: var(--ink-muted);
  text-align: left;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 8px 8px;
  margin: 0 -8px;
  min-height: 36px;
  text-decoration: none;
  color: var(--ink-body);
  font-size: 19px;
  line-height: 22px;
}

.work-list a:hover,
.work-list a:active {
  background: var(--row-hover);
  color: var(--ink);
}

.work-list a:hover .work-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-name {
  color: var(--ink);
  white-space: nowrap;
}

.work-desc {
  color: var(--ink-muted);
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-lang {
  color: var(--ink-muted);
  font-size: 16px;
  white-space: nowrap;
}

.work-list a:hover .work-desc,
.work-list a:hover .work-lang {
  color: var(--ink-body);
}

/* Bottom links & email span full width */
.links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-faint);
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 18px;
  line-height: 22px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.email {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: -8px;
  padding: 4px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.email:hover {
  color: var(--ink);
}

/* Desktop (>= 680px): full-height 2-column asymmetric split */
@media (min-width: 680px) {
  .stage {
    max-width: 680px;
    padding: 32px 24px;
    grid-template-columns: 172px minmax(0, 1fr);
    column-gap: 44px;
    row-gap: 0;
    align-items: center;
  }

  .figure {
    grid-column: 1;
    grid-row: 1;
  }

  .logo {
    width: 158px;
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
  }

  .head h1 {
    font-size: 42px;
  }

  .blanc-logo {
    width: 44px;
  }

  .meta {
    font-size: 18px;
    line-height: 20px;
    white-space: nowrap;
  }

  .bio p {
    font-size: 20px;
    line-height: 24px;
  }

  .work {
    margin-top: 0;
    gap: 8px;
  }

  .work-list a {
    padding: 4px 8px;
    margin: 0 -8px;
    min-height: 30px;
    font-size: 20px;
  }

  .work-desc {
    font-size: 18px;
  }

  .links a {
    min-height: 24px;
  }

  .email {
    margin-top: -8px;
    padding: 0;
    font-size: 18px;
    line-height: 22px;
  }
}
