@font-face { font-family: Anton; src: url('assets/fonts/anton-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url('assets/fonts/ibm-plex-mono-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
  --paper: #dcdcd8;
  --ink: #111211;
  --muted: #62635e;
  --rule: #8a8b84;
  --panel: rgba(220, 220, 216, .9);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); font: 12px/1.5 Plex, 'Courier New', monospace; letter-spacing: .035em; }
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .13;
  background: url('assets/paper-grain.svg') repeat;
  background-size: 768px 768px;
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; background: none; border: 0; border-radius: 0; padding: 0; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: var(--ink); color: var(--paper); }
p, h1 { margin: 0; }
.masthead { position: relative; z-index: 2; margin: 0 3vw; height: 64px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; letter-spacing: .1em; }
.masthead > a { font-size: 14px; }
#theme-toggle { display: flex; align-items: center; gap: 9px; padding: 10px 0 10px 12px; font-size: 10px; }
#theme-toggle > span:first-child { font: 22px/1 Arial, sans-serif; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.background-study { position: absolute; width: 620px; height: 610px; right: -80px; top: 100px; overflow: hidden; opacity: .17; mask-image: radial-gradient(ellipse at center, #000 25%, transparent 73%); }
.background-study img { position: absolute; width: 1510px; max-width: none; left: -800px; top: -45px; }
.link-page { position: relative; z-index: 1; width: min(100% - 44px, 480px); margin: 45px auto 34px; }
.identity { position: relative; }
.specimen { height: 192px; position: relative; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.specimen > img { position: absolute; width: 240%; max-width: none; left: -132.8125%; top: 0; transform: translateY(-5.371%); }
.specimen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--paper), transparent 26%); }
.specimen-label { position: absolute; z-index: 1; top: 10px; left: 13px; font-size: 8px; letter-spacing: .1em; }
.title-wrap { position: relative; margin-top: -35px; z-index: 2; padding: 0 12px; }
h1 { font: 400 118px/.98 Anton, Impact, sans-serif; letter-spacing: -.035em; mask: url('assets/ink-grain.svg') repeat; }
.title-line { display: block; width: max-content; overflow: clip; overflow-clip-margin: 6px; }
.title-line > span { display: inline-block; width: max-content; transform-origin: left center; }
.ink-gesture { position: absolute; width: 85px; height: 250px; top: -42px; left: 46%; transform: rotate(12deg); pointer-events: none; mix-blend-mode: multiply; }
.identity-caption { margin: 15px 0 25px; padding-bottom: 15px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.identity-caption a { color: var(--muted); font-size: 9px; }
.link-stack { display: grid; gap: 10px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 79px; padding: 15px 21px; background: var(--panel); border: 1px solid var(--rule); transition: background .18s, color .18s, border-color .18s; }
.link-card.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-copy { display: grid; gap: 5px; }
.link-copy strong { font-size: 13px; font-weight: 400; letter-spacing: .045em; }
.link-copy > span { font-size: 9px; letter-spacing: .015em; color: var(--muted); }
.primary .link-copy > span { color: var(--paper); opacity: .72; }
.link-arrow { font: 24px/1 Arial, sans-serif; transition: transform .18s; }
.link-card:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.link-card:hover .link-copy > span { color: var(--paper); opacity: .72; }
.link-card:hover .link-arrow { transform: translate(2px, -2px); }
.link-card.primary:hover { background: var(--paper); color: var(--ink); }
.link-card.primary:hover .link-copy > span { color: var(--muted); }
.page-footer { margin-top: 26px; border-top: 1px solid var(--rule); padding-top: 16px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 10px; }
#share-link { min-height: 34px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
#share-link:hover { color: var(--ink); }
#share-link > span:last-child { font: 20px/1 Arial, sans-serif; }
.share-status { width: 100%; font-size: 10px; overflow-wrap: anywhere; }
.share-status:empty { display: none; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 10; padding: 12px; background: var(--paper); border: 1px solid var(--ink); }
.skip-link:focus { top: 12px; }
html[data-theme='dark'] { --paper: #101112; --ink: #deded8; --muted: #a4a49d; --rule: #5e605b; --panel: rgba(16, 17, 18, .92); color-scheme: dark; }
html[data-theme='dark'] body::after { mix-blend-mode: screen; opacity: .09; }
html[data-theme='dark'] .ink-gesture { filter: invert(1); mix-blend-mode: screen; }
html[data-theme='dark'] .background-study { opacity: .3; }
@media (min-width: 1200px) {
  .link-page::before { content: 'flash / freehand'; position: absolute; left: -160px; top: 390px; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--muted); font-size: 9px; letter-spacing: .2em; }
}
@media (max-width: 600px) {
  .masthead { height: 53px; margin: 0 20px; }
  .masthead > a { font-size: 11px; }
  #theme-label { display: none; }
  #theme-toggle { padding-left: 15px; }
  .link-page { width: calc(100% - 40px); margin-top: 27px; }
  .specimen { height: 160px; }
  .title-wrap { padding: 0 7px; margin-top: -23px; }
  h1 { font-size: clamp(94px, 28vw, 118px); }
  .ink-gesture { width: 68px; height: 210px; left: 47%; top: -25px; }
  .identity-caption { margin-top: 14px; margin-bottom: 20px; font-size: 9px; }
  .identity-caption a { font-size: 8px; }
  .link-card { min-height: 76px; padding: 14px 17px; }
  .link-copy strong { font-size: 13px; }
  .link-copy > span { font-size: 10px; }
  .background-study { right: -270px; top: 160px; opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* A complete link hub within the available screen, including mobile browser chrome. */
:root {
  --header-height: clamp(40px, 6svh, 60px);
  --page-gap: clamp(10px, 2svh, 20px);
  --link-height: clamp(48px, 7.2svh, 70px);
  --link-gap: clamp(5px, 1svh, 10px);
  --footer-height: clamp(39px, 6svh, 58px);
  --caption-height: clamp(27px, 4.4svh, 42px);
}
body { height: 100svh; overflow: hidden; display: grid; grid-template-rows: var(--header-height) minmax(0, 1fr); }
.masthead { height: var(--header-height); }
.link-page {
  height: calc(100svh - var(--header-height) - 2 * var(--page-gap));
  min-height: 0;
  margin: var(--page-gap) auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto var(--footer-height);
  row-gap: clamp(7px, 1.3svh, 14px);
}
.identity { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto var(--caption-height); }
.specimen { height: 100%; min-height: 0; }
.title-wrap { margin-top: -10px; min-width: 0; }
h1 { font-size: min(clamp(58px, 12svh, 118px), 30vw); }
.identity-caption { margin: 0; align-items: center; padding: 0; }
.identity-caption a { display: inline-flex; align-items: center; gap: 5px; }
.identity-caption .icon { width: 11px; height: 11px; }
.link-stack { gap: var(--link-gap); min-height: 0; min-width: 0; }
.link-card { min-height: 0; height: var(--link-height); padding: 8px 18px; }
.link-copy { gap: 3px; min-width: 0; }
.link-copy strong { font-size: 13px; line-height: 1.2; }
.link-copy > span { font-size: 10px; line-height: 1.3; }
.link-arrow { flex-shrink: 0; }
.page-footer { margin: 0; padding-top: 6px; gap: 0 12px; min-height: 0; min-width: 0; align-content: space-between; }
#share-link { min-height: 26px; }
.share-status { position: fixed; z-index: 10; left: 50%; bottom: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); padding: 8px 12px; border: 1px solid var(--rule); background: var(--paper); text-align: center; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ink-gesture { height: min(250px, 26svh); top: -26px; }
.identity { animation: expose .7s cubic-bezier(.2,.65,.2,1) both; }
.link-card { animation: expose .55s cubic-bezier(.2,.65,.2,1) both; animation-delay: .12s; }
.link-card:nth-child(2) { animation-delay: .17s; }
.link-card:nth-child(3) { animation-delay: .22s; }
.link-card:nth-child(4) { animation-delay: .27s; }
.link-card:nth-child(5) { animation-delay: .32s; }
.page-footer { animation: expose .55s .38s cubic-bezier(.2,.65,.2,1) both; }
@keyframes expose {
  from { opacity: 0; filter: blur(7px); transform: translateY(7px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@media (max-width: 600px) {
  .link-card { padding: 7px 15px; gap: 14px; }
  .link-copy strong { font-size: 12px; }
  .link-copy > span { font-size: 9px; }
  .specimen-label { font-size: 7px; }
}
@media (max-height: 640px) {
  h1 { font-size: clamp(48px, 10.8svh, 72px); }
  .title-wrap { margin-top: -6px; }
  .link-copy { gap: 2px; }
  .page-footer { font-size: 9px; }
}
@media (max-height: 520px) and (min-width: 620px) {
  .link-page { width: min(940px, calc(100% - 44px)); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr) 35px; column-gap: 30px; }
  .identity { grid-column: 1; grid-row: 1 / -1; }
  .link-stack { grid-column: 2; grid-row: 1; grid-template-rows: repeat(6, minmax(0, 1fr)); }
  .link-card { height: auto; padding: 5px 14px; }
  .link-copy strong { font-size: 12px; }
  .link-copy > span { font-size: 9px; }
  .page-footer { grid-column: 2; grid-row: 2; }
}
@media (max-height: 520px) and (max-width: 619px) {
  :root { --header-height: 34px; --page-gap: 8px; --link-height: 42px; --link-gap: 4px; --footer-height: 31px; --caption-height: 20px; }
  .specimen { display: none; }
  .identity { grid-template-rows: minmax(0, 1fr) var(--caption-height); }
  .title-wrap { align-self: end; margin: 0; padding: 0; }
  .ink-gesture { display: none; }
  .identity-caption { font-size: 8px; }
  .identity-caption a { font-size: 7px; }
  .link-copy > span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The brand is one word and one line at every breakpoint. */
h1 { display: block; font-size: min(80px, 16vw, 10svh); line-height: 1.08; white-space: nowrap; }
.title-line { width: 100%; }
@media (max-height: 520px) and (min-width: 620px) {
  .ink-gesture { width: 30px; height: 18svh; top: -20px; }
}

/* Softly rounded, action-specific links in the current compact link hub. */
:root { --link-height: clamp(44px, 6.3svh, 62px); --footer-height: clamp(28px, 4.5svh, 42px); }
.link-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) 14px; gap: 13px; border-radius: 10px; border-color: color-mix(in srgb, var(--rule) 75%, transparent); background: color-mix(in srgb, var(--paper) 84%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 7px rgba(0,0,0,.025); transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.link-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.link-icon .icon { width: 18px; height: 18px; stroke-width: 1.45; }
.link-arrow { width: 13px; height: 13px; opacity: .55; }
.link-card.primary { background: var(--ink); border-color: var(--ink); }
.primary .link-icon { background: color-mix(in srgb, var(--paper) 10%, transparent); }
.link-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 14px rgba(0,0,0,.08); }
.link-card:hover .link-arrow { opacity: 1; transform: translateX(2px); }
.link-card:nth-child(6) { animation-delay: .37s; }
.page-footer { align-content: center; }
@media (max-width: 600px) { .link-card { grid-template-columns: 26px minmax(0, 1fr) 12px; padding-inline: 12px; gap: 10px; } .link-icon { width: 26px; height: 26px; } .link-icon .icon { width: 16px; height: 16px; } .link-copy strong { font-size: 11px; } .link-copy > span { font-size: 8px; } }
@media (max-height: 520px) and (max-width: 619px) { :root { --link-height: 36px; --footer-height: 25px; } .link-card { padding-block: 4px; } }

#theme-toggle { padding: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.profile-character { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
#theme-toggle:hover { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
#theme-label.visually-hidden { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px), (max-height: 520px) { #theme-toggle { width: 30px; height: 30px; } }
