:root {
  --bg: #f5f2ec;
  --card: #ffffff;
  --ink: #221d18;
  --muted: rgba(34, 29, 24, 0.62);
  --line: rgba(34, 29, 24, 0.08);
  --clay: #c8643b;
  --gap: 20px;
  --radius: 28px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); max-width: 1280px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 56px); }
.profile { position: sticky; top: clamp(40px, 5vw, 72px); align-self: start; }
.avatar { display: grid; place-items: center; width: 128px; height: 128px; overflow: hidden; border-radius: 50%; background: #efe1d2; box-shadow: inset 0 0 0 1px var(--line); }
.avatar svg { width: 84px; height: 84px; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
h1 { margin-top: 28px; font: 400 clamp(44px, 4.6vw, 60px)/0.98 var(--serif); letter-spacing: -0.02em; }
.bio { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; color: var(--clay); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; transition: transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-icon { width: 44px; padding: 0; justify-content: center; border: 0; cursor: pointer; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon[data-copied] { background: var(--ink); color: var(--bg); }
.btn-quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); }
.tiles { container-type: inline-size; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(calc((100cqi - 3 * var(--gap)) / 4), auto); grid-auto-flow: dense; gap: var(--gap); }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(34, 29, 24, 0.04); transition: transform 0.2s, box-shadow 0.2s; }
a.tile:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px rgba(34, 29, 24, 0.1); }
a.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 0%), rgba(255, 255, 255, 0.4), transparent 55%); opacity: 0; transition: opacity 0.25s; pointer-events: none; }
a.tile:hover::after { opacity: 1; }
.wide { grid-column: span 2; }
.big { grid-column: span 2; grid-row: span 2; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tile h2 { margin-top: 10px; font: 400 clamp(26px, 3.2cqi, 34px)/1.05 var(--serif); letter-spacing: -0.01em; }
.sub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.pill { align-self: flex-start; margin-top: 18px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.page-profile .os-ad { padding: 28px; background: #eae7e0; }
.page-profile .os-ad h2 { max-width: 9em; font-size: clamp(34px, 5cqi, 48px); }
.page-profile .os-ad .pill { background: #44403c; color: #fff; }
.page-profile .os-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.page-profile .os-preview span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.72); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.page-profile .os-preview span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #44403c; opacity: 0.65; }
.social { gap: 2px; }
.badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: auto; border-radius: 12px; color: #fff; }
.badge svg { width: 24px; height: 24px; }
.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.page-profile .fb { background: #1877f2; }
.tt { background: #111; }
.sp { background: #1db954; }
.name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.handle { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.follow { align-self: flex-start; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.map { padding: 0; }
.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.marker { position: absolute; top: 50%; left: 58%; display: grid; place-items: center; width: 48px; height: 48px; border: 4px solid #fff; border-radius: 50%; background: var(--clay); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 18px rgba(200, 100, 59, 0.45); }
.marker svg { width: 22px; height: 22px; }
.chip { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.shop { flex-direction: row; justify-content: space-between; gap: 18px; }
.shop > div { max-width: 15em; }
.wares { display: flex; gap: 12px; align-self: flex-end; }
.wares li { display: grid; justify-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.wares b { color: var(--ink); font-size: 14px; }
.ware { display: block; width: 52px; height: 60px; margin-bottom: 6px; }
.mug { border-radius: 6px 6px 14px 14px; background: linear-gradient(#e9b44c 55%, #b9862b 55% 60%, #e9b44c 60%); }
.bowl { height: 36px; margin-top: 24px; border-radius: 4px 4px 30px 30px; background: linear-gradient(#c8643b 22%, #f3e3d3 22%); box-shadow: inset 0 0 0 1px var(--line); }
.vase { border-radius: 40% 40% 22px 22px / 30% 30% 22px 22px; background: #2f4a3a; }
.hours { background: #e7eddf; }
.open { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 15px; font-weight: 600; line-height: 1.25; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2f8a4f; box-shadow: 0 0 0 4px rgba(47, 138, 79, 0.18); }
.open[data-state="closing"] .dot { background: #d08a1e; box-shadow: 0 0 0 4px rgba(208, 138, 30, 0.2); }
.open[data-state="closed"] .dot { background: #b0533a; box-shadow: 0 0 0 4px rgba(176, 83, 58, 0.18); }
.times { margin-top: auto; font: 400 26px/1.05 var(--serif); }
.open:not([hidden]) + .times { margin-top: 6px; }
.quote { justify-content: center; }
.stars { color: var(--clay); font-size: 14px; letter-spacing: 3px; }
blockquote { margin-top: 8px; font: 400 clamp(20px, 2.6cqi, 25px)/1.2 var(--serif); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.dark { background: var(--ink); color: var(--bg); }
.dark .kicker { color: rgba(245, 242, 236, 0.6); }
.dark h2 { max-width: 11em; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; }
.more svg { width: 16px; height: 16px; }
.reveal { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s); }
.reveal.revealed { opacity: 1; transform: none; }
.foot { display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-top: 32px; color: var(--muted); font-size: 13px; }
.foot a:hover { color: var(--ink); }
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; }
  .profile { position: static; }
}
@media (max-width: 640px) {
  :root { --gap: 14px; --radius: 24px; }
  .page { gap: 36px; }
  .avatar { width: 104px; height: 104px; }
  .avatar svg { width: 68px; height: 68px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(calc((100cqi - var(--gap)) / 2), auto); }
  .tile { padding: 18px; }
  .tile h2 { font-size: 26px; }
  .classes { padding: 22px; }
  .classes h2 { font-size: 34px; }
  .wares { gap: 10px; }
  .ware { width: 42px; height: 50px; }
  .bowl { height: 30px; margin-top: 20px; }
  .times { font-size: 24px; }
  .foot { justify-content: center; }
}

.page-profile .enquiry-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(90vh, 800px);
  margin: auto;
  padding: clamp(22px, 4vw, 32px);
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(34, 29, 24, 0.24);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, display 220ms allow-discrete, overlay 220ms allow-discrete;
}
.page-profile .enquiry-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.page-profile .enquiry-dialog::backdrop {
  background: rgba(34, 29, 24, 0);
  transition: background-color 220ms ease, overlay 220ms allow-discrete;
}
.page-profile .enquiry-dialog[open]::backdrop { background: rgba(34, 29, 24, 0.54); }
@starting-style {
  .page-profile .enquiry-dialog[open] { opacity: 0; transform: translateY(14px) scale(0.98); }
  .page-profile .enquiry-dialog[open]::backdrop { background: rgba(34, 29, 24, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-profile .enquiry-dialog,
  .page-profile .enquiry-dialog::backdrop { transition: none; }
}
.page-profile .enquiry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.page-profile .enquiry-head h2 { margin-top: 7px; font: 400 clamp(30px, 7vw, 38px)/1.05 var(--serif); letter-spacing: -0.01em; }
.page-profile .enquiry-close { flex: none; font: 400 26px/1 var(--sans); }
.page-profile .enquiry-intro { margin-top: 12px; color: var(--muted); font-size: 14px; }
.page-profile .enquiry-form { display: grid; gap: 14px; margin-top: 20px; }
.page-profile .enquiry-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.page-profile .enquiry-field input,
.page-profile .enquiry-field textarea { width: 100%; border: 1px solid rgba(34, 29, 24, 0.16); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); }
.page-profile .enquiry-field textarea { min-height: 140px; resize: vertical; }
.page-profile .enquiry-field input:focus,
.page-profile .enquiry-field textarea:focus { outline: 3px solid rgba(68, 64, 60, 0.2); border-color: #44403c; }
.page-profile .enquiry-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.page-profile .enquiry-actions .btn { border: 0; cursor: pointer; font: 600 15px/1 var(--sans); }
.page-profile .enquiry-actions .btn:disabled { cursor: wait; opacity: 0.6; }
.page-profile .enquiry-status { min-height: 1.5em; color: var(--muted); font-size: 14px; }
.page-profile .enquiry-status[data-state="error"] { color: #9b2c20; }
.page-profile .enquiry-status[data-state="success"] { color: #25613b; }
.page-profile .enquiry-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.page-profile .snake-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(90vh, 800px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(22px, 4vw, 32px);
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(34, 29, 24, 0.24);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, display 220ms allow-discrete, overlay 220ms allow-discrete;
}
.page-profile .snake-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.page-profile .snake-dialog::backdrop {
  background: rgba(34, 29, 24, 0);
  transition: background-color 220ms ease, overlay 220ms allow-discrete;
}
.page-profile .snake-dialog[open]::backdrop { background: rgba(34, 29, 24, 0.54); }
@starting-style {
  .page-profile .snake-dialog[open] { opacity: 0; transform: translateY(14px) scale(0.98); }
  .page-profile .snake-dialog[open]::backdrop { background: rgba(34, 29, 24, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-profile .snake-dialog,
  .page-profile .snake-dialog::backdrop { transition: none; }
}
.page-profile .snake-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.page-profile .snake-head h2 { margin-top: 7px; font: 400 clamp(30px, 7vw, 38px)/1.05 var(--serif); letter-spacing: -0.01em; }
.page-profile .snake-close { flex: none; font: 400 26px/1 var(--sans); }
.page-profile .snake-intro { margin-top: 12px; color: var(--muted); font-size: 14px; }
.page-profile .snake-game { margin-top: 16px; }
.page-profile .snake-score { display: flex; justify-content: space-between; align-items: center; max-width: 400px; margin: 0 auto; font-size: 14px; font-weight: 600; }
.page-profile .snake-score strong { min-width: 2ch; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.page-profile .snake-board { display: block; width: min(100%, 400px); height: auto; margin: 10px auto 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); outline: none; }
.page-profile .snake-board:focus-visible { outline: 3px solid rgba(68, 64, 60, 0.2); outline-offset: 3px; }
.page-profile .mario-dialog { width: min(520px, calc(100% - 32px)); padding: clamp(16px, 3vw, 22px); }
.page-profile .mario-dialog .snake-head h2 { font-size: clamp(26px, 6vw, 32px); }
.page-profile .mario-dialog .snake-status:empty { display: none; }
.page-profile .mario-board { width: min(100%, 720px); image-rendering: pixelated; }
.page-profile .mario-controls { grid-template-columns: repeat(3, 56px); grid-template-rows: 40px; gap: 6px; margin-top: 10px; }
.page-profile .mario-controls button { font-size: 15px; padding: 0; }
.page-profile .snake-controls { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 44px); gap: 6px; justify-content: center; margin: 14px auto 0; }
.page-profile .snake-controls button { border: 1px solid rgba(34, 29, 24, 0.16); border-radius: 12px; background: #fff; color: var(--ink); font: 600 19px/1 var(--sans); cursor: pointer; }
.page-profile .snake-controls [data-snake-dir="up"] { grid-column: 2; grid-row: 1; }
.page-profile .snake-controls [data-snake-dir="left"] { grid-column: 1; grid-row: 2; }
.page-profile .snake-controls [data-snake-dir="down"] { grid-column: 2; grid-row: 2; }
.page-profile .snake-controls [data-snake-dir="right"] { grid-column: 3; grid-row: 2; }
.page-profile .snake-controls button:focus-visible { outline: 3px solid rgba(68, 64, 60, 0.2); outline-offset: 2px; }
.page-profile .snake-status { min-height: 1.5em; margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.page-profile .snake-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.page-profile .snake-actions .btn { border: 0; cursor: pointer; font: 600 15px/1 var(--sans); }