:root {
  --orange: #e3a46f;
  --cream: #f4f0e8;
  --muted: #bdc5c5;
  --teal: #14232a;
  --glass: rgba(13, 25, 31, .82);
  --gb: rgba(255, 255, 255, .13);
  --serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; color: var(--cream); font-family: var(--serif); line-height: 1.6; background: #132128; }
.wallpaper { position: fixed; inset: 0; z-index: 0; background: url('/bg.jpg') center / cover no-repeat; }
.wallpaper::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(8,17,22,.82), rgba(9,19,24,.55) 55%, rgba(8,17,22,.72)); }
.page { position: relative; z-index: 1; width: min(100% - 2rem, 1100px); min-height: 100vh; margin-inline: auto; padding: clamp(1.25rem, 4vw, 3rem) 0; }
.page:has(> .card) { justify-content: center; }
.card, .welcome { background: rgba(13, 25, 31, .88); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card { padding: clamp(1.35rem, 4vw, 3rem); }
.card-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 2rem; padding: 0 0 1rem; border-bottom: 1px solid var(--gb); }
.card-nav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .8rem; border-radius: 999px; color: #c3cdcd; font: 500 .78rem/1.2 var(--serif); letter-spacing: .01em; text-decoration: none; text-transform: none; transition: background .18s ease, color .18s ease; }
.card-nav a:hover, .card-nav a.active { color: var(--cream); background: rgba(227,164,111,.16); }
.card-nav a:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.eyebrow, .section-label { color: var(--orange); font: 600 .72rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { margin-bottom: .7rem; }
.section-label { margin-top: 2rem; margin-bottom: .8rem; padding-bottom: .55rem; border-bottom: 1px solid var(--gb); }
h1 { max-width: 18ch; margin: 0 0 1.15rem; color: var(--cream); font-size: clamp(2.3rem, 7vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.055em; }
h1 em { color: var(--orange); font-style: normal; }
.bio, .summary, .subtitle, .site-header p { color: #c2cbcb; font-family: var(--serif); font-size: 1rem; line-height: 1.75; letter-spacing: 0; }
.bio strong, .welcome-text strong { color: var(--cream); font-weight: 650; }
.divider { width: 2.5rem; height: 2px; margin-bottom: 1.25rem; background: var(--orange); }
.card-footer { gap: 1rem; color: #a9b6b8; }
.card-footer span { color: #a9b6b8; font: 400 .7rem/1.5 var(--mono); letter-spacing: 0; }
.card-footer .clock, #clock { color: var(--orange) !important; }
.info-list li, .status-list li, .contact-list li { border-color: rgba(255,255,255,.12); }
.info-key, .info-val, .status-name, .contact-name { line-height: 1.5; }
.info-key, .status-desc, .contact-desc, .summary, .last-checked { color: #b7c2c3; }
.gallery-grid { gap: .75rem; }
.gallery-item { border-radius: 12px; border-color: rgba(255,255,255,.16); }
.gallery-item img { transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.sound-grid { gap: .7rem; }
.sound-btn { min-height: 6rem; border-radius: 12px; padding: 1rem; background: rgba(255,255,255,.055); }
.sound-btn:hover, .sound-btn.playing { background: rgba(227,164,111,.14); border-color: var(--orange); }
.btn-name { font-size: .9rem; }
.btn-tag { font-size: .68rem; }
.now-playing { color: var(--orange); }
.topbar { padding: .75rem 0; }
.topbar-brand { font-size: 1rem; }
.topbar-right { color: var(--orange); }
.welcome { padding: 1rem 1.25rem; }
.card, .welcome, .topbar { animation-duration: .35s; }
.site-header { width: min(100%, 520px); text-align: left; margin: 1rem auto 1.25rem; }
.site-header h1 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); background: none; -webkit-text-fill-color: currentColor; }
.site-header .eyebrow { color: var(--orange); }
.site-header p { max-width: 55ch; }
.alert { border-radius: 12px; }
.alert.success { color: #bde4cf; }
.alert.error { color: #ffc4c4; }
label { color: #d5dddd; font-size: .76rem; letter-spacing: .025em; }
select, input[type="text"], textarea { min-height: 2.8rem; border-color: rgba(255,255,255,.16); border-radius: 10px; font: 400 .95rem/1.5 var(--serif); }
textarea { min-height: 7rem; }
.btn-submit { min-height: 2.9rem; border-radius: 10px; background: var(--orange); color: #182127; font: 650 .95rem/1 var(--serif); letter-spacing: 0; box-shadow: none; }
.btn-submit:hover { background: #f0b47e; transform: translateY(-1px); box-shadow: none; }
.page-footer { color: #a9b6b8; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.home-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .6rem 1rem; border: 1px solid rgba(227,164,111,.55); border-radius: 999px; color: var(--cream); text-decoration: none; font-size: .88rem; transition: background .18s ease; }
.home-actions a:hover { background: rgba(227,164,111,.16); }
@media (max-width: 700px) {
  .page { width: min(100% - 1.25rem, 1100px); }
  .card-nav { gap: .15rem; margin-bottom: 1.5rem; }
  .card-nav a { padding-inline: .65rem; }
  .card-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.nav-status { margin-left: .3rem; padding: .16rem .42rem; border: 1px solid rgba(227,164,111,.38); border-radius: 999px; color: var(--orange); font: 600 .58rem/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.portfolio-intro { max-width: 58ch; margin: -.3rem 0 1.2rem; color: #c2cbcb; font-size: .95rem; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.featured-card, .gallery-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.045); }
.gallery-image { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; background: #101a1e; cursor: zoom-in; }
.gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-image:hover img { transform: scale(1.035); }
.featured-card figcaption, .gallery-card figcaption { display: grid; gap: .3rem; min-height: 3.5rem; padding: .75rem .85rem .85rem; }
.photo-caption { color: var(--cream); font-size: .86rem; line-height: 1.45; }
.photo-date { color: #aab8ba; font: 400 .68rem/1.4 var(--mono); }
.gallery-grid-full { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.status-note { margin: 1rem 0 1.6rem; color: #acb9bb; font-size: .83rem; line-height: 1.6; }
.status-badge.protected { color: var(--orange); }
.status-badge.protected .status-dot { background: var(--orange); }
.status-badge.down .status-dot { background: var(--down); }
.sound-btn.unavailable, .sound-btn:disabled { cursor: not-allowed; opacity: .48; filter: saturate(.45); }
.sound-btn:disabled:hover { border-color: var(--gb); background: rgba(255,255,255,.04); }
@media (max-width: 740px) { .featured-grid, .gallery-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .featured-grid, .gallery-grid-full { grid-template-columns: 1fr; } }
