/* =========================================================
   base.css: copied verbatim from the team site (w3_w4nt_p1zza/style.css)
   so p1zza meet shares the exact tokens, .win chrome, pills, menubar
   and terminal styles. app-specific rules live in meet.css.
   ========================================================= */

:root {
  --paper: #f6f1e8;
  --paper-2: #efe8dc;
  --card: #fffdf9;
  --ink: #1d1612;
  --ink-2: #5e534b;   /* body copy on paper  ~ 7:1 */
  --ink-3: #7a6f66;   /* captions on paper   ~ 4.6:1 */
  --line: #ddd3c4;
  --line-2: #cbbfae;
  --dot: rgba(70, 50, 30, .16);

  --tomato: #e8402f;
  --tomato-ink: #b92a1c;
  --tomato-hi: #ff7a66;
  --basil: #2fa36b;
  --basil-ink: #1c7449;
  --neon-basil: #3ddc84;
  --crust: #e59a33;
  --cheese: #ffcf5c;
  --marker: #fff09a;

  --night: #15100d;
  --night-2: #1f1814;
  --night-line: rgba(255, 241, 214, .12);
  --cream: #fff1d6;
  --cream-2: #c9b9a2;

  --gold: #ffd34d;
  --silver: #dbe3ec;
  --bronze: #e59a63;

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --r: 10px;
  --r-lg: 16px;
  --space: clamp(20px, 5vw, 48px);
  --sec: clamp(88px, 11vw, 140px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -18px rgba(60, 40, 20, .35), 0 2px 6px rgba(60, 40, 20, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 28px 28px;
  font: 400 16px/1.6 var(--f-sans); letter-spacing: -.005em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cheese); color: var(--ink); }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--space); }
.narrow { width: min(820px, 100%); }
.mono { font-family: var(--f-mono); }
.center { text-align: center; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- window chrome: ONE component for every window (macOS-canonical) ----------
   markup: .win > .win-bar > (.tl > i*3) + .win-title, then the window's content.
   lights 12px Ø, 8px apart, 12px from the left edge · 28px bar · 13px/500 system title
   10px radius · 0.5px border · layered shadow · --win-pad for content */
:root { --win-r: 10px; --win-pad: 18px; --win-bar-h: 28px;
  --win-shadow: 0 1px 1.5px rgba(0,0,0,.08), 0 4px 10px -2px rgba(0,0,0,.10), 0 22px 48px -12px rgba(40,25,10,.30);
  --f-sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.win { position: relative; background: var(--card); border: 0; /* 0.5px hairline drawn as the first shadow layer so it stays crisp on 1x too */ border-radius: var(--win-r); box-shadow: 0 0 0 .5px var(--win-ring, rgba(0,0,0,.24)), var(--win-shadow); overflow: hidden; }
.win-bar { position: relative; flex: none; display: flex; align-items: center; height: var(--win-bar-h); padding: 0 12px; background: linear-gradient(#f6f3ee, #e9e4dc); box-shadow: inset 0 -.5px 0 rgba(0,0,0,.16); }
.tl { display: flex; align-items: center; gap: 8px; }
.tl i { display: block; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; background: #ff5f57; border: .5px solid #e2463f; }
.tl i:nth-child(2) { background: #febc2e; border-color: #e1a116; }
.tl i:nth-child(3) { background: #28c840; border-color: #14ae29; }
.win-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 152px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1 var(--f-sys); letter-spacing: -.005em; color: #6e6a66; pointer-events: none; }
.win-title .ico { color: #8a857f; }
.win-dark { --win-ring: rgba(0,0,0,.85); background: var(--night); color: var(--cream); }
.win-dark .win-bar { background: linear-gradient(#352c26, #2a221d); box-shadow: inset 0 -.5px 0 rgba(0,0,0,.6), inset 0 .5px 0 rgba(255,255,255,.08); }
.win-dark .win-title { color: rgba(255,241,214,.58); }
/* small desktop pin windows reuse the same chrome, only the width differs */
.win-bar { container-type: inline-size; }
/* narrow windows (e.g. crew cards): like macOS, the title stops being window-centred and centres in the space right of the lights */
@container (max-width: 250px) { .win-title { position: static; transform: none; flex: 1; min-width: 0; max-width: none; margin-left: 8px; justify-content: center; display: block; text-align: center; } }
.win-mini { width: 220px; }
.win-mini .win-body { margin: 0; padding: 10px 12px 12px; }
.win-mini pre.win-body { font: 400 10.5px/1.5 var(--f-mono); color: var(--neon-basil); }
.caption { display: block; margin-top: 10px; font: 400 12.5px var(--f-sans); color: var(--ink-3); text-align: center; }

/* ---------- pills (glossy) ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 999px;
  font: 500 16px var(--f-sans); text-decoration: none; color: var(--ink); cursor: pointer;
  background: linear-gradient(#ffffff, #ece6dc); border: 1px solid #bfb3a2;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12), 0 6px 16px -8px rgba(60,40,20,.4);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.pill::after { content: ""; position: absolute; left: 12%; right: 12%; top: 2px; height: 45%; border-radius: 999px; background: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,0)); pointer-events: none; }
.pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.12), 0 14px 26px -10px rgba(60,40,20,.5); }
.pill:active { transform: translateY(0) scale(.98); }
.pill-primary { color: #fff; background: linear-gradient(#ff7a66, #e8402f 60%, #d0321f); border-color: #a92415; text-shadow: 0 1px 0 rgba(120, 20, 10, .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.2), 0 10px 22px -10px rgba(232,64,47,.8); }
.pill-primary::after { background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); }
.pill-light { font-family: var(--f-mono); font-size: 15px; }
.ico { flex: none; display: inline-block; vertical-align: -0.18em; }
.pill .ico { margin-left: -3px; }
.pill-primary .ico { filter: drop-shadow(0 1px 0 rgba(120,20,10,.45)); }
.bar-title { display: inline-flex; align-items: center; gap: 6px; }
#toast .ico { vertical-align: -3px; margin-right: 4px; color: var(--cheese); }
.flip-hint { display: inline-flex; align-items: center; gap: 5px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--tomato-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }


/* ---------- menubar ---------- */
.menubar { position: fixed; inset: 0 0 auto; z-index: 100; height: 44px; background: rgba(246, 241, 232, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(203, 191, 174, .55); }
.menubar-inner { height: 100%; display: flex; align-items: center; gap: 22px; padding-inline: clamp(14px, 2.4vw, 28px); position: relative; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; }
.logo b { font-weight: 600; }
.logo-mark { width: 20px; height: 20px; transition: transform .6s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-25deg) scale(1.15); }
.nav-links { display: flex; gap: 18px; }
.nav-links a { font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--tomato); }
.menubar-glyph { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 17px; letter-spacing: -.1em; }
.menubar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink-2); }
.sys { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.batt { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; padding: 1px; position: relative; }
.batt::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.batt i { display: block; height: 100%; width: 87%; background: var(--basil); border-radius: 1px; }
.clock { font-size: 13px; font-variant-numeric: tabular-nums; }
.menubar-cta { font-weight: 600; color: var(--tomato-ink); text-decoration: none; font-size: 14px; }
.menubar-cta span { font-size: 9px; vertical-align: 2px; color: var(--tomato); animation: blink 1.6s steps(1) infinite; }
.menubar-cta:hover { text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 11px 9px; cursor: pointer; margin-right: -8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .35s var(--spring); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* desk stickers */

.kao { font: 600 22px var(--f-mono); color: var(--ink); white-space: nowrap; filter: none; }
.nametag { width: 132px; border-radius: 9px; overflow: hidden; background: #2c6fe0; color: #fff; text-align: center; padding-top: 6px; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; }
.nametag small { display: block; font: 800 15px/1 var(--f-sans); letter-spacing: .06em; }
.nametag .tiny { font: 500 9px/1.4 var(--f-sans); letter-spacing: .02em; }
.nametag b { display: block; margin: 5px 0 9px; padding: 10px 0; background: #fff; color: var(--ink); font: 700 26px/1 var(--f-hand); }

.item-slice { width: 112px; }
.pin-slice { width: 100%; height: auto; filter: drop-shadow(3px 6px 0 rgba(58,28,12,.18)) drop-shadow(0 10px 10px rgba(58,28,12,.22)); }
.sticky { width: 120px; padding: 12px 14px 16px; background: var(--marker); font: 700 21px/1.1 var(--f-hand); color: #4a3a10; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); }

/* terminal text */

.term-body { margin: 0; font: 400 14px/1.8 var(--f-mono); color: var(--cream); white-space: pre-wrap; word-break: break-word; width: 100%; }
.t-ps { color: var(--neon-basil); }
.t-out { color: var(--cream-2); }
.t-dir { color: #7cc4f2; font-weight: 600; }
.t-dim { color: #8d7f72; }
.t-flag { color: var(--cheese); text-shadow: 0 0 14px rgba(255, 207, 92, .55); font-weight: 600; }
.t-err { color: #ff8b7d; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--tomato); vertical-align: -.16em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.px { image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }

/* labels */

.label { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font: 600 11px var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.label-dark { background: var(--night-2); border-color: var(--night-line); color: var(--cream-2); }

/* zsh input */

.term-input { display: flex; align-items: center; gap: 10px; padding: 12px calc(var(--win-pad) + 4px) var(--win-pad); border-top: 1px solid var(--night-line); }
.ps1 { color: var(--neon-basil); font: 600 13.5px var(--f-mono); white-space: nowrap; }
.term-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--cream); font: 400 14px var(--f-mono); caret-color: var(--tomato); }
.term-input input::placeholder { color: #7d6f62; }
.shell:focus-within { box-shadow: inset 0 0 0 1px rgba(61,220,132,.45); }

kbd { font: 600 11px var(--f-mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--card); color: var(--ink); }

/* toast */

#toast { position: fixed; left: 50%; bottom: 26px; z-index: 260; transform: translate(-50%, 160%); opacity: 0; background: var(--night); color: var(--cream); padding: 13px 20px; border-radius: 12px; font: 500 13.5px var(--f-mono); box-shadow: 0 20px 50px -12px rgba(20,10,5,.6); transition: transform .55s var(--spring), opacity .4s; max-width: calc(100vw - 32px); text-align: center; border: 1px solid #000; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast b { color: var(--cheese); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
