:root {
  color-scheme: dark;
  --page: #100e19;
  --panel: #1c1829;
  --ink: #fbf8ff;
  --muted: #c6bed4;
  --line: #3a324c;
  --lime: #d5ff55;
  --violet: #c0a9ff;
  --pink: #ff9ed7;
  --cyan: #87eeed;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Arial Black', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 2; transform: translateY(-160%); background: var(--lime); color: var(--page); padding: .75rem; }
.skip:focus { transform: translateY(0); }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.35rem;
  padding-block: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.04rem; font-weight: 850; letter-spacing: -.04em; }
.brand img { flex: none; }
nav { display: flex; gap: .2rem; border: 1px solid var(--line); border-radius: 2rem; padding: .2rem; }
nav a { display: inline-block; padding: .43rem .9rem; border-radius: 2rem; font-weight: 700; font-size: .9rem; }
nav a:hover { background: var(--line); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(25rem, 48vw, 31rem);
  align-items: center;
  margin-block: .6rem 3rem;
  border: 1px solid #523982;
  border-radius: 1.5rem;
  background: #241343;
}
.hero-photo { position: absolute; z-index: -1; inset: 0; overflow: hidden; border-radius: inherit; }
.hero-photo img { position: absolute; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #241343 24%, #241343e8 36%, #24134354 64%, #25133c18),
    linear-gradient(0deg, #180f29b3, transparent 35%);
}
.hero-photo figcaption { position: absolute; right: 1.15rem; bottom: 1rem; z-index: 1; padding: .25rem .6rem; background: #181225ed; border-radius: .4rem; color: var(--ink); font-size: .875rem; font-weight: 700; }
.hero-copy { padding: clamp(2rem, 6vw, 4.8rem); }
h1 { font: 900 clamp(4.3rem, 10.5vw, 8.65rem)/.84 var(--display); letter-spacing: -.095em; margin-bottom: 1.2rem; }
h1 em { color: var(--lime); font-style: normal; }
.intro { max-width: 22rem; color: #eee8fb; font-size: 1.06rem; line-height: 1.5; }
.button { display: inline-flex; align-items: center; min-height: 2.8rem; padding: .55rem 1.15rem; margin-top: 1.25rem; background: var(--lime); color: #181624; border-radius: .65rem; font-weight: 850; }
.button:hover { background: #eaff9f; }

.section { margin-bottom: clamp(2.8rem, 7vw, 5rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
h2 { font: 900 clamp(2rem, 5vw, 3.55rem)/1.05 var(--display); letter-spacing: -.085em; }
.section-head p { color: var(--muted); }
#ai h2 { color: var(--violet); }
#manga h2 { color: var(--pink); }
#travel h2 { color: var(--cyan); }
.tool-grid, .shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.tool-card, .shelf a, .destination a {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 1rem;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.tool-card:hover, .shelf a:hover, .destination a:hover { transform: translateY(-3px); background: #272038; }
.tool-card:hover { border-color: var(--violet); }
.shelf a:hover { border-color: var(--pink); }
.destination a:hover { border-color: var(--cyan); }
.tool-card { gap: .25rem; padding: 1.05rem; }
.tool-card strong, .shelf strong { font-size: 1.13rem; line-height: 1.3; font-weight: 850; }
.tool-card > span:last-child, .shelf small, .destination-copy > p:not(.label) { color: var(--muted); }
.tool-icon { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; margin-bottom: .45rem; border-radius: .7rem; color: #1b1427; font-size: 1.55rem; line-height: 1; }
.mint { background: var(--lime); }
.peach { background: #ffb394; }
.lilac { background: var(--violet); }
.sky { background: var(--cyan); }

.shelf a { overflow: hidden; }
.book-icon {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  color: #1a122a;
  background-color: var(--cover);
  background-image: radial-gradient(#1a122a38 1.05px, transparent 1.2px), linear-gradient(135deg, #ffffff65, transparent 64%);
  background-size: 8px 8px, 100% 100%;
  font-size: 4rem;
  line-height: 1;
}
.book-ocean { --cover: #85e5fc; }
.book-rose { --cover: #ff9ed7; }
.book-violet { --cover: #c0a9ff; }
.book-gold { --cover: #f9d777; }
.book-copy { display: grid; gap: .3rem; padding: .9rem .95rem .3rem; }
.shelf small, .genre { font-size: .875rem; }
.genre { margin-top: auto; padding: .15rem .95rem .9rem; color: var(--pink); font-weight: 700; }

.travel-reads { margin-bottom: 2rem; }
.travel-reads h3, .travel-subtitle { font-size: 1.2rem; margin-bottom: .7rem; }
.read-grid, .travel-grid { display: grid; gap: .75rem; }
.read-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.read-panel {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  background: linear-gradient(145deg, var(--read-bg), var(--panel));
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.burning-man { --read-bg: #432636; --read-accent: #ffbe92; }
.biosphere { --read-bg: #213d38; --read-accent: #a7f4c0; }
.read-panel .label, .read-panel a:hover { color: var(--read-accent); }
.read-panel h4 { font: 850 clamp(1.65rem, 4vw, 2.3rem)/1.12 var(--body); letter-spacing: -.055em; }
.read-panel > p:not(.label) { color: var(--muted); margin-bottom: .55rem; }
.read-panel li + li { border-top: 1px solid var(--line); }
.read-panel a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .5rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.travel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.destination a { overflow: hidden; }
.destination img { width: 100%; aspect-ratio: 1.65; object-fit: cover; background: #302942; }
.destination-copy { display: grid; flex: 1; grid-template-rows: auto auto 1fr auto; gap: .35rem; padding: 1rem; }
.label { color: var(--cyan); font-size: .875rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.destination h4 { font: 850 1.6rem/1.15 var(--body); letter-spacing: -.055em; }
.guide { color: var(--cyan); font-size: .875rem; font-weight: 750; text-decoration: underline; text-underline-offset: .23em; margin-top: .35rem; }
.site-footer { align-items: start; border-top: 1px solid var(--line); margin-bottom: 1rem; }
summary { min-height: 2rem; cursor: pointer; font-weight: 700; font-size: .9rem; }
summary:hover { color: var(--violet); }
.site-footer details { max-width: 32rem; }
.site-footer details li { margin-block: .4rem; color: var(--muted); font-size: .875rem; }
.site-footer details a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 2rem, 74rem); }
  .tool-grid, .shelf, .travel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-header nav { width: 100%; }
  .site-header nav a { flex: 1; display: grid; place-items: center; min-height: 2.75rem; }
  .hero { min-height: 30rem; align-items: end; border-radius: 1.15rem; margin-bottom: 2.5rem; }
  .hero-photo img { width: 100%; height: 75%; object-position: center 25%; }
  .hero-photo::after { background: linear-gradient(0deg, #241343 16%, #241343 28%, #241343c7 55%, #24134316 86%); }
  .hero-photo figcaption { top: .75rem; right: .75rem; bottom: auto; }
  .hero-copy { padding: 1.45rem; }
  .intro { max-width: 18rem; }
  .tool-card { padding: .8rem; }
  .section-head { display: grid; }
  .read-grid, .travel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  h1 { font-size: 3.75rem; }
  .site-header { gap: .55rem; }
  nav a { padding-inline: .65rem; }
  .hero-copy { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card, .shelf a, .destination a { transition: none; }
  .tool-card:hover, .shelf a:hover, .destination a:hover { transform: none; }
}
