:root {
  color-scheme: dark;
  --bg: #111011;
  --panel: #191719;
  --stroke: #353030;
  --text: #fff8ee;
  --muted: #c3b9b2;
  --gold: #f8bd65;
  --heading: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; }
h2 { font-size: clamp(33px, 4vw, 50px); letter-spacing: -.045em; line-height: 1.1; }
.shell { width: min(100% - 88px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 10px; left: 10px; padding: 8px 12px; translate: 0 -180%; background: var(--bg); }
.skip-link:focus { translate: 0; }

.site-header { border-bottom: 1px solid #332a25; }
.header-inner { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font: 700 23px/1 var(--heading); letter-spacing: -.05em; }
.brand > span > span { color: var(--gold); }
.header-inner nav { display: flex; gap: 34px; color: var(--muted); font-size: 14px; font-weight: 600; }
.header-inner nav a:hover, .site-footer a:hover { color: var(--gold); }
.header-inner > .sign-in { justify-self: end; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 14px; font-weight: 650; line-height: 1.3; transition: background-color .18s, border-color .18s; }
.button-outline { border-color: #5c4a39; }
.button-outline:hover { background: #30251d; border-color: var(--gold); }
.button-gold { color: #20150a; background: var(--gold); }
.button-gold:hover { background: #ffd292; }
.button-text:hover { color: var(--gold); }

.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid #382c23; background: #151113; }
.hero-inner { position: relative; display: flex; align-items: center; min-height: 495px; }
.hero-art { position: absolute; z-index: -1; inset: 0 calc((min(100vw - 88px, 1240px) - 100vw) / 2) 0 35%; background: linear-gradient(90deg, #151113 0%, #151113b8 15%, #15111300 38%), linear-gradient(0deg, #151113 0%, #15111300 26%, #15111300 77%, #15111365 100%), url("assets/sonosun-banner.jpg") 52% 50% / cover no-repeat; }
.hero-copy { padding: 64px 0 71px; width: min(530px, 80%); }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .16em; line-height: 1.35; }
.sun-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 15px #fda63887; }
h1 { margin: 18px 0 19px; font-size: clamp(55px, 6.1vw, 93px); line-height: .99; letter-spacing: -.067em; }
h1 em { color: var(--gold); font-weight: inherit; }
.hero-description { max-width: 365px; color: var(--muted); font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 29px; }

.projects { padding-top: 40px; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: center; gap: 25px; margin-bottom: 21px; }
.section-rule { height: 1px; flex: 1; background: var(--stroke); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { position: relative; isolation: isolate; overflow: hidden; min-height: 210px; padding: 25px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--panel); }
.hunt { background: linear-gradient(90deg, #211912 34%, #211912e5 56%, #21191215 100%), url("assets/hunt.jpg") right -64px center / 340px auto no-repeat, #211912; }
.soul { --gold: #d5bbfa; background: radial-gradient(circle at 93% 54%, #352346, #1a151f 58%); }
.link-art { display: flex; position: absolute; z-index: -1; align-items: center; top: 57px; right: 0; translate: 22% 0; rotate: -31deg; opacity: .52; }
.link-art i { display: block; width: 112px; height: 60px; border: 10px solid #b280e7; border-radius: 34px; box-shadow: inset 0 0 15px #c695ff60, 0 0 26px #b479e555; }
.link-art i + i { margin-left: -21px; }
.project-copy { max-width: 76%; }
.project-copy h3 { margin: 8px 0 5px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.038em; line-height: 1.1; }
.project-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 14px; font-weight: 650; }
.project-copy .text-link { margin-top: 16px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.community { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 35px; padding: 26px; border: 1px solid var(--stroke); border-radius: 8px; background: var(--panel); }
.community h2 { font-size: 28px; }
.community p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.site-footer { display: flex; justify-content: space-between; margin-top: 28px; padding-block: 18px 25px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 14px; }

dialog { width: min(590px, calc(100% - 26px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid #5c4a39; border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: 0 22px 85px #000b; }
dialog::backdrop { background: #0b090bd6; }
.dialog-inner { position: relative; padding: 32px; }
.dialog-dismiss { position: absolute; top: 9px; right: 11px; }
.close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 5px; background: transparent; font-size: 28px; line-height: 1; }
.close:hover { background: #30251d; }
.dialog-inner h2 { margin: 9px 0 15px; outline: 0; }
#dialog-content > p + p { margin-top: 9px; }
#dialog-content p, #dialog-content li { color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.preview-list { display: grid; gap: 8px; margin-top: 18px; }
.preview-list details { border: 1px solid var(--stroke); border-radius: 5px; background: #211d20; }
.preview-list summary { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.preview-list summary::before { content: "+"; color: var(--gold); }
.preview-list details[open] summary::before { content: "−"; }
.preview-list summary small { margin-left: auto; color: var(--muted); text-align: right; }
.preview-list details p { padding: 0 12px 12px 32px; }
.preview-list ul { margin: 0 0 12px; padding-left: 44px; }
.back { margin-top: 19px; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; height: 65px; gap: 11px; }
  .header-inner nav { display: none; }
  .brand img { width: 45px; height: 45px; }
  .hero-inner { align-items: flex-end; min-height: 570px; }
  .hero-art { inset: 0 -18px auto; height: 290px; background: linear-gradient(0deg, #151113 0%, #15111300 40%), url("assets/sonosun-banner.jpg") center / cover no-repeat; }
  .hero-copy { width: 100%; padding: 233px 0 35px; }
  h1 { margin-block: 12px 15px; }
  .actions { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 183px; padding: 20px; }
  .hunt { background-size: auto, 270px auto, auto; }
  .community { align-items: flex-start; flex-direction: column; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}


.header-inner nav [aria-current="page"] { color: var(--gold); }
.calendar-page { max-width: 1080px; padding-top: clamp(30px, 5vw, 64px); }
.calendar-page h1 { font-size: clamp(42px, 7vw, 78px); margin: 0 0 12px; }
.calendar-intro { margin-bottom: 25px; }
.calendar-intro p, .calendar-agenda > p { color: var(--muted); }
.calendar-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calendar-controls h2, .calendar-agenda h2 { font-size: clamp(28px, 4.5vw, 42px); }
.calendar-controls nav { display: flex; align-items: center; gap: 6px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-grid abbr { color: var(--muted); font-size: .8rem; text-align: center; text-decoration: none; padding: 3px 0; }
.calendar-cell { min-height: 88px; padding: 7px; background: var(--panel); border: 1px solid var(--stroke); border-radius: 5px; }
.calendar-cell.blank { background: transparent; border-color: transparent; }
.calendar-today { border-color: #a07548; }
.calendar-cell.calendar-busy { background: #29201d; }
.calendar-day { display: block; }
.calendar-day:hover, .calendar-today .calendar-day-number { color: var(--gold); }
.calendar-day-number { display: inline-block; font-size: .9rem; font-weight: 700; }
.calendar-event-label { display: block; color: var(--gold); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-agenda { margin: 30px 0 40px; }
.calendar-agenda h2 { margin-bottom: 15px; }
.calendar-agenda-day { display: grid; grid-template-columns: minmax(9rem, .6fr) 2fr; border-top: 1px solid var(--stroke); padding: 13px 0; gap: 8px 18px; scroll-margin-top: 20px; }
.calendar-agenda-day h3 { font-size: 1.15rem; }
.calendar-agenda-day ul { list-style: none; margin: 0; padding: 0; }
.calendar-agenda-day li { display: grid; grid-template-columns: minmax(8.4rem, .6fr) 2fr; gap: 6px 12px; }
.calendar-agenda-day li + li { margin-top: 10px; }
.calendar-agenda-day li div { min-width: 0; overflow-wrap: anywhere; }
.calendar-agenda-day p { color: var(--muted); }
.calendar-agenda-day .calendar-time { color: var(--gold); white-space: nowrap; }
.calendar-time span { display: block; color: var(--muted); font-size: .76rem; }
@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(42px, 1fr) auto auto; gap: 8px; }
  .header-inner nav { display: flex; gap: 0; }
  .header-inner nav a:not(.calendar-nav) { display: none; }
  .calendar-cell { min-height: 46px; padding: 4px; text-align: center; }
  .calendar-event-label { display: none; }
  .calendar-busy .calendar-day::after { content: ""; display: block; width: 5px; height: 5px; margin: 1px auto 0; border-radius: 50%; background: var(--gold); }
  .calendar-agenda-day { grid-template-columns: 1fr; }
  .calendar-agenda-day li { grid-template-columns: minmax(7.2rem, .65fr) 2fr; }
}
@media (max-width: 385px) {
  .header-inner .brand > span { display: none; }
  .header-inner .sign-in { padding-inline: 9px; }
}

.calendar-signup { margin-top: 9px; }
.calendar-agenda-day .calendar-signed-up { color: var(--gold); margin-top: 4px; }
