@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Oleo Script Swash Caps';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oleo-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --background: #fff8dc;
  --primary: #0b5884;
  --ink: #0b2841;
  --muted: #426176;
  --line: #0b588429;
  --card: #fffdf2;
  --tile: #ffe9b7;
  --search: #fffdf280;
  --hover-ink: #fff8dc;
  --focus: #0b5884;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #081a25;
  --primary: #8cc3e4;
  --ink: #fff1cc;
  --muted: #b0c3cf;
  --line: #8cc3e433;
  --card: #102736;
  --tile: #193b50;
  --search: #102736;
  --hover-ink: #081a25;
  --focus: #ffe9b7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; height: 100%; overflow: hidden; }
body { margin: 0; height: 100%; overflow: hidden; background: var(--background); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, .project-list:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: var(--primary); color: var(--background); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px 20px; background: var(--primary); color: var(--background); transform: translateY(-180%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1200px, calc(100% - 112px)); height: 100vh; height: 100dvh; min-height: 0; margin: auto; display: flex; flex-direction: column; }
.site-header { min-height: 116px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; border-radius: 50%; }
.brand-name { color: var(--primary); font-family: 'Oleo Script Swash Caps', Georgia, serif; font-size: 1.8rem; letter-spacing: -.04em; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.hobby-label { font-size: .875rem; color: var(--muted); }
.icon-button { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
.icon-button:hover { background: var(--tile); }
.theme-toggle { color: var(--primary); }
.sun-icon, [data-theme='dark'] .moon-icon { display: none; }
[data-theme='dark'] .sun-icon { display: block; }
.hub { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.08fr; grid-template-rows: minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding: clamp(24px, 6vh, 56px) 0; }
.intro { align-self: center; padding-bottom: 2px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--primary); font-size: .8125rem; letter-spacing: .13em; font-weight: 600; }
.little-star { display: inline-block; font-size: 1.8rem; line-height: 1; }
h1 { margin: 0; font-size: clamp(3.3rem, 5.3vw, 4.5rem); line-height: 1.07; letter-spacing: -.065em; font-weight: 550; }
.script-word { position: relative; display: inline-block; font-family: 'Oleo Script Swash Caps', Georgia, serif; font-size: 1.48em; letter-spacing: -.045em; line-height: 1.12; font-weight: 400; color: var(--primary); }
.script-word::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 9px; border-top: 2px solid var(--primary); border-radius: 50%; transform: rotate(-4deg); opacity: .6; }
.intro-copy { margin: 30px 0 0; max-width: 400px; color: var(--muted); font-size: 1rem; line-height: 1.85; letter-spacing: -.025em; }
.creative-note { display: flex; align-items: center; gap: 8px; margin: 32px 0 0 -12px; }
.note-drawing { width: 115px; height: 82px; color: var(--primary); stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-5deg); }
.creative-note p { color: var(--primary); font-size: .875rem; line-height: 1.8; transform: rotate(-4deg); }
.creative-note p span { color: var(--muted); }
.projects { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.projects:focus { outline: none; }
.section-heading { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 1.5rem; font-weight: 550; letter-spacing: -.05em; }
.heading-dot { color: var(--primary); }
.project-count { flex: 0 0 auto; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .8125rem; }
.search-box { flex-shrink: 0; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 4px 6px 4px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--search); color: var(--muted); margin-bottom: 18px; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--line); }
.search-box > .icon { width: 19px; height: 19px; }
.search-box input { min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 1rem; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: var(--muted); opacity: .85; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-search { border: 0; width: 40px; height: 40px; flex: 0 0 auto; }
.clear-search .icon { width: 18px; height: 18px; }
.project-list { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; scrollbar-gutter: stable; scroll-padding-block: 8px; padding: 8px; margin: -8px; list-style: none; display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; }
.project-card { position: relative; display: flex; gap: 20px; align-items: center; min-height: 128px; padding: 18px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.project-art { display: flex; align-items: center; justify-content: center; flex: 0 0 84px; height: 88px; border-radius: 10px; color: var(--primary); background: var(--tile); overflow: hidden; transition: transform .2s ease; }
.project-art svg { width: 78px; height: 78px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.art-naiara { border-radius: 50% 50% 12px 12px; }
.art-serra { border-radius: 12px 32px 12px 12px; }
.art-legacy { border-radius: 32px 32px 12px 12px; }
.art-detail { opacity: .6; }
.project-info { min-width: 0; flex: 1; }
.project-info h3 { margin: 0 0 9px; font-size: 1.125rem; letter-spacing: -.035em; line-height: 1.3; font-weight: 600; }
.project-domain { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.visit-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); }
.visit-icon .icon { width: 18px; height: 18px; }
.project-card:focus-visible { border-color: var(--primary); }
@media (hover: hover) {
  .project-card:hover { background: var(--primary); border-color: var(--primary); color: var(--hover-ink); transform: translateY(-3px); box-shadow: 0 8px 0 -3px var(--line); }
  .project-card:hover .project-domain { color: var(--hover-ink); opacity: .8; }
  .project-card:hover .visit-icon { color: var(--hover-ink); border-color: currentColor; }
  .project-card:hover .project-art { transform: rotate(-4deg); }
}
.project-card:active { transform: scale(.985); }
.links-note { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: .8125rem; color: var(--muted); }
.links-note .icon { width: 15px; height: 15px; }
.empty-state { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 16px; }
.empty-state > .icon { width: 32px; height: 32px; color: var(--primary); }
.empty-state h3 { margin: 16px 0 10px; font-size: 1.125rem; }
.empty-state p { font-size: .9375rem; color: var(--muted); line-height: 1.7; }
.reset-search { background: var(--primary); color: var(--hover-ink); border: 0; padding: 12px 20px; border-radius: 8px; margin-top: 8px; }
.site-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 95px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.site-footer p { margin: 18px 0; }
.site-footer strong { font-weight: 500; color: var(--ink); }
.footer-note span { display: inline-block; color: var(--primary); margin-left: 14px; font-size: 1.4rem; vertical-align: middle; }
@media (max-width: 1100px) {
  .page-shell { width: calc(100% - 64px); }
  .hub { gap: 36px; grid-template-columns: .9fr 1.1fr; }
  h1 { font-size: clamp(2.9rem, 5.5vw, 3.5rem); }
  .project-card { gap: 14px; padding: 15px; }
  .project-art { flex-basis: 68px; height: 76px; }
  .project-art svg { width: 68px; height: 68px; }
  .visit-icon { width: 30px; height: 30px; }
}
@media (max-width: 780px) {
  .page-shell { width: min(540px, calc(100% - 48px)); }
  .site-header { min-height: 80px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.6rem; }
  .hobby-label { display: none; }
  .hub { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 24px 0; }
  .intro { flex-shrink: 0; align-self: stretch; }
  .eyebrow { font-size: .75rem; margin-bottom: 12px; }
  h1 { max-width: 440px; font-size: clamp(2.125rem, 9vw, 2.75rem); line-height: 1.15; }
  .desktop-line { display: none; }
  .script-word { font-size: 1.25em; }
  .script-word::after { bottom: 0; }
  .intro-copy { margin-top: 12px; max-width: 370px; line-height: 1.8; }
  .creative-note { display: none; }
  .projects { flex: 1; height: auto; margin-top: 0; }
  .section-heading { margin-bottom: 14px; }
  h2 { font-size: 1.375rem; }
  .project-card { min-height: 110px; padding: 14px; gap: 16px; }
  .project-art { flex-basis: 68px; height: 76px; }
  .project-info h3 { font-size: 1.0625rem; }
  .links-note { margin-top: 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 0; padding: 12px 0; }
  .site-footer p { margin: 0; }
  .footer-note { max-width: 320px; }
  .footer-note span { margin-left: 6px; }
}
@media (min-width: 781px) and (max-height: 800px) {
  .site-header { min-height: 80px; }
  .site-footer { min-height: 64px; }
  .hub { padding: 24px 0; }
  h1 { font-size: clamp(2.6rem, 4.5vw, 3.5rem); }
  .intro-copy { margin-top: 20px; }
  .creative-note { margin-top: 16px; }
}
@media (max-height: 700px) {
  .site-header { min-height: 64px; }
  .site-footer { min-height: 44px; padding: 8px 0; }
  .site-footer .footer-note, .creative-note { display: none; }
  .site-footer p { margin: 0; }
  .hub { padding: 16px 0; gap: 16px; }
  .eyebrow { display: none; }
  h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
  .intro-copy { margin-top: 8px; }
  .section-heading { margin-bottom: 12px; }
  .search-box { margin-bottom: 14px; }
  .links-note { margin-top: 12px; }
  .empty-state h3 { margin: 8px 0; }
  .empty-state p { margin: 0 0 8px; }
}
@media (max-height: 500px) {
  .empty-state { padding: 8px; }
  .empty-state > .icon, .empty-state p { display: none; }
  .empty-state h3 { font-size: 1rem; margin: 0 0 8px; }
  .reset-search { margin-top: 0; padding: 10px 16px; }
}
@media (max-width: 780px) and (max-height: 500px) {
  .page-shell { width: calc(100% - 48px); }
  .hub { display: grid; grid-template-columns: .8fr 1.2fr; }
  .intro { align-self: center; }
  .intro-copy { display: none; }
  .projects { height: 100%; }
  h2 { font-size: 1.125rem; }
}
@media (max-width: 380px) {
  .page-shell { width: calc(100% - 32px); }
  .project-card { gap: 12px; padding: 12px; }
  .project-art { flex-basis: 52px; height: 64px; }
  .project-art svg { width: 56px; height: 56px; }
  .visit-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
