:root {
  color-scheme: dark;
  --paper: #171220;
  --panel: #241b30;
  --ink: #fcf8ff;
  --muted: #cec3d5;
  --line: #47384f;
  --accent: #ffa8df;
  --lavender: #ebd7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button, input {
  font: inherit;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
  background: var(--panel);
}

header {
  background: #21132d;
  border-bottom: 1px solid var(--line);
}

.topbar, .brand, nav, .footer-inner {
  display: flex;
  align-items: center;
}

.topbar, .footer-inner {
  justify-content: space-between;
  gap: 22px;
}

.brand {
  gap: 13px;
  text-decoration: none;
  padding-block: 15px;
}

.brand img {
  width: 124px;
  height: auto;
}

.brand span {
  font-weight: 650;
  color: var(--accent);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

nav {
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  padding: 10px 12px;
  font-size: .9rem;
  text-decoration: none;
  color: var(--muted);
}

nav a:hover, nav a[aria-current] {
  background: #432953;
  border-radius: 8px;
  color: white;
}

main {
  padding-block: clamp(26px, 4vw, 62px);
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2 {
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.55rem);
  max-width: 990px;
}

.intro {
  color: var(--muted);
  max-width: 78ch;
  margin-top: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr);
  gap: 20px;
  margin-block: 24px 38px;
}

.gallery, .account, .tile, .reading, .find {
  border: 1px solid var(--line);
  border-radius: 18px;
}

.gallery {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
}

.switches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px;
}

.switches button {
  cursor: pointer;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.switches button[aria-pressed="true"] {
  background: #4e335e;
  color: white;
}

.account {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: clamp(19px, 3vw, 36px);
  background: radial-gradient(ellipse at top right, #553464, transparent 85%), var(--panel);
}

.account img {
  width: 48px;
  height: 48px;
}

.account h2 {
  margin: 4px 0 12px;
  font-size: 1.6rem;
}

.action {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  text-decoration: none;
  background: linear-gradient(125deg, var(--accent), #c692ef);
  color: #21112c;
}

.secondary {
  color: white;
  background: #382342;
  border: 1px solid #866698;
}

.action:hover, .tile:hover {
  filter: brightness(1.1);
}

.section-title {
  margin: 36px 0 17px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  display: block;
  padding: 19px;
  background: var(--panel);
  text-decoration: none;
}

.tile strong, .tile span {
  display: block;
}

.tile strong {
  color: var(--accent);
  font-size: 1.06rem;
}

.tile span {
  margin-top: 7px;
  color: var(--muted);
}

.reading, .find {
  padding: clamp(20px, 4vw, 48px);
  background: #f6f0fa;
  color: #281b31;
}

.reading h2, .find h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
}

.reading p {
  margin: 12px 0 24px;
  max-width: 74ch;
}

.reading p:last-child {
  margin-bottom: 0;
}

.reading details {
  border-bottom: 1px solid #d9cbe0;
  padding: 12px 0;
}

summary {
  font-weight: 650;
  cursor: pointer;
}

.reading details p {
  margin-bottom: 4px;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.crumb {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 14px;
}

.find label, .find input {
  display: block;
  width: 100%;
}

.find input {
  color-scheme: light;
  padding: 12px;
  margin: 7px 0 14px;
  color: #23172a;
  background: white;
  border: 1px solid #82678b;
  border-radius: 8px;
}

.find ul {
  padding-left: 20px;
}

.find li {
  margin-top: 9px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-block: 24px;
}

@media (max-width: 850px) {
  .topbar {
    display: block;
    padding-bottom: 8px;
  }

  nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  nav a {
    flex-shrink: 0;
  }
}

@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .hero, .columns, .cards {
    grid-template-columns: 1fr;
  }

  .hero .account, .columns .account {
    grid-row: 1;
  }

  .account {
    gap: 8px;
    padding: 16px;
  }

  .account img {
    display: none;
  }

  .account h2 {
    font-size: 1.15rem;
    margin: 0 0 4px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }
}

/* Lavender surfaces and an artwork-led home page. */
:root {
  color-scheme: light;
  --ink: #26162f;
  --paper: #f4eef9;
  --panel: #fffaff;
  --muted: #65576f;
  --line: #ded0e7;
  --accent: #713292;
}

body {
  background: radial-gradient(ellipse at 8% 0, #e7d7fb, transparent 46rem), var(--paper);
}

.wrap {
  width: min(1320px, calc(100% - 48px));
}

header {
  background: transparent;
  border: 0;
  padding-top: 18px;
}

.topbar {
  background: #2c163e;
  border-radius: 20px;
  padding: 5px 24px;
  box-shadow: 0 8px 22px #37154d18;
}

nav a, .brand span {
  color: #f4e8ff;
}

main {
  padding-block: 22px 50px;
}

main > h1 {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.hero {
  margin: 0 0 30px;
  padding: clamp(14px, 2vw, 28px);
  border: 1px solid #e6dcec;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 15px 45px #43205110;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 50px);
}

.gallery {
  border: 0;
  background: #281535;
}

.switches {
  padding: 9px;
  flex-wrap: nowrap;
}

.switches button {
  flex: 1;
  color: #e6d9ee;
  line-height: 1.25;
  font-size: .82rem;
  border: 1px solid transparent;
}

.switches button[aria-pressed="true"] {
  background: #523167;
  border-color: #976aa9;
}

.account {
  background: #fff;
  color: var(--ink);
}

.hero .account {
  align-self: center;
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 0;
}

.edition {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  color: #713292;
  font-weight: 700;
}

.edition img {
  display: block;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 11px;
  background: #f4eaf9;
}

.hero h1 {
  font-size: clamp(1.72rem, 2.6vw, 2.65rem);
}

.hero .intro {
  margin: 14px 0 18px;
  font-size: 1rem;
}

.action {
  background: linear-gradient(110deg, #7531aa, #542079);
  color: #fff;
}

.action.secondary {
  background: #faf3ff;
  color: #58217b;
  border: 1px solid #a479bb;
}

.hero .action + .action {
  margin-top: 8px;
}

.reading, .find {
  background: #fff;
}

.tile {
  background: #fff;
  border-top: 3px solid #b692cf;
}

@media (max-width: 850px) {
  .topbar {
    padding: 0 15px 8px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 24px);
  }

  header {
    padding-top: 10px;
  }

  main {
    padding-top: 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero .account {
    grid-row: 1;
    padding: 3px;
  }

  .edition {
    margin-bottom: 10px;
  }
}
