/* Chao's light appearance, from Assets.xcassets/Colors.
   System monospace mirrors SwiftUI's monospaced headings and controls. */
:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #111111;
  --red: #ff3b30;
  --muted: #666666;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
@supports (color: color(display-p3 1 0 0)) {
  :root {
    --paper: color(display-p3 0.960784 0.949020 0.921569);
    --ink: color(display-p3 0.066667 0.066667 0.066667);
    --red: color(display-p3 1 0.231373 0.188235);
  }
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
::selection { color: var(--paper); background: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
p { line-height: 1.6; }
.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 16px; color: var(--paper); background: var(--ink); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 24px; }
.wordmark { display: block; flex-shrink: 0; width: 120px; }
.platform, .eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.07em; }
.platform { border: 1px solid var(--ink); padding: 8px 10px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.75rem; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover, a[aria-current="page"] { text-decoration: underline; }
.landing { display: flex; flex-direction: column; min-height: 100svh; }
.landing main { flex: 1; }
.hero { padding-block: clamp(48px, 7vw, 96px) 72px; }
.hero-copy { max-width: 960px; }
.eyebrow { margin: 0 0 28px; color: var(--muted); }
h1 { font-size: clamp(2.5rem, 7.8vw, 7rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.07em; margin: 0; }
.marked { position: relative; display: inline-block; isolation: isolate; }
.marked::after { content: ""; position: absolute; z-index: -1; left: -1%; right: -2%; bottom: -0.10em; height: 0.26em; background: url("/assets/underline.svg") center / 100% 100% no-repeat; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 48px; margin-top: 36px; }
.intro { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.5; margin: 0; }
.swipe-directions { display: flex; flex-shrink: 0; gap: 32px; }
.swipe-directions p { display: grid; justify-items: center; gap: 12px; margin: 0; font-size: 1.625rem; line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.chao-direction { color: var(--red); }
.direction { width: 112px; height: auto; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-block: 16px; }
.site-footer p { font-size: 0.6875rem; color: var(--muted); margin: 0; }
.site-footer p a { color: var(--ink); }
.document { max-width: 740px; padding-block: 64px 88px; }
.document h1 { font-size: clamp(2.75rem, 6vw, 4rem); overflow-wrap: anywhere; }
.document h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.035em; margin: 36px 0 12px; }
.document > p, .notice p, .contact-panel p { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.document > p { max-width: 640px; }
.document a { overflow-wrap: anywhere; }
.notice { border: 1px solid var(--ink); border-left: 4px solid var(--red); padding: 20px 24px; margin-block: 32px; }
.notice strong { font-size: 0.875rem; }
.notice p { margin-bottom: 0; }
.contact-panel { border: 3px solid var(--ink); padding: 24px; margin-block: 32px; box-shadow: 4px 4px 0 var(--ink); }
.contact-panel h2 { margin-top: 0; }
.email { font-weight: 700; font-size: clamp(0.875rem, 3vw, 1.125rem); }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 20px; margin-top: 16px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); font-weight: 700; font-size: 0.875rem; text-decoration: none; text-transform: uppercase; }
.button:active { translate: 4px 4px; box-shadow: none; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 40px); }
  .site-header { padding-block: 24px; }
  .wordmark { width: 104px; }
  .hero { padding-block: 40px 48px; }
  .eyebrow { margin-bottom: 24px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 36px; margin-top: 24px; }
  .intro { font-size: 1.125rem; }
  .site-footer { flex-wrap: wrap; padding-block: 20px; gap: 8px; }
  .site-header nav { gap: 0 16px; justify-content: flex-end; }
  .document { padding-block: 32px 64px; }
  .contact-panel { padding: 20px; }
}
@media (max-width: 380px) {
  .site-header { gap: 12px; }
  .site-header nav { gap: 0 12px; }
  .site-header nav a { font-size: 0.6875rem; }
  .desktop-break { display: none; }
}
@media (forced-colors: active) {
  .marked::after { background: none; border-bottom: 3px solid CanvasText; }
}
