:root {
  color-scheme: light;
  --paper: #f3efe6;
  --ink: #27231f;
  --muted: #6c6259;
  --line: rgba(39, 35, 31, 0.12);
  --cream: #fffaf0;
  --sage: #d9e1cf;
  --moss: #66705d;
  --clay: #c9825b;
  --sun: #f0bc55;
  --sky: #aec9d8;
  --rose: #d8aaa0;
  --charcoal: #353433;
  --shadow: 0 24px 60px rgba(48, 39, 30, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(240, 188, 85, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(174, 201, 216, 0.36), transparent 24rem),
    linear-gradient(135deg, #f8f1e2 0%, var(--paper) 48%, #e9ede1 100%);
  font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 28px 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.profile-panel,
.tile {
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.profile-panel {
  min-height: 168px;
  padding: 18px 22px;
  border-radius: 24px;
  background:
    linear-gradient(100deg, rgba(255, 250, 240, 0.76), rgba(255, 250, 240, 0.94)),
    var(--cream);
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
}

.profile-panel::after {
  content: "";
  width: 190px;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: absolute;
  right: -74px;
  top: -58px;
}

.brand-mark {
  width: clamp(116px, 16vw, 170px);
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(68, 57, 44, 0.16));
}

.handle {
  margin: 0 0 12px;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: none;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.85rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 44rem;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 18px;
}

.tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: auto -20% -38% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  z-index: -1;
}

.tile:hover,
.tile:focus-visible {
  border-color: rgba(39, 35, 31, 0.18);
  box-shadow: 0 28px 70px rgba(48, 39, 30, 0.2);
  transform: translateY(-4px);
}

.tile:focus-visible {
  outline: 3px solid rgba(53, 52, 51, 0.32);
  outline-offset: 4px;
}

.tile-feature {
  grid-column: span 4;
  min-height: 232px;
  background:
    linear-gradient(145deg, rgba(53, 52, 51, 0.9), rgba(102, 112, 93, 0.84)),
    var(--charcoal);
  color: #fffaf0;
}

.tile-map {
  grid-column: span 2;
}

.tile-books,
.tile-school {
  grid-column: span 2;
}

.tile-family,
.tile-shop,
.tile-studio {
  grid-column: span 2;
}

.tile-map {
  background-color: var(--sage);
}

.tile-books {
  background-color: #f7dfaa;
}

.tile-school {
  background-color: var(--sky);
}

.tile-family {
  background-color: var(--rose);
}

.tile-shop {
  background-color: #eee7d8;
}

.tile-studio {
  background-color: #d7d2c4;
}

.tile-kicker {
  color: rgba(39, 35, 31, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tile-feature .tile-kicker {
  color: rgba(255, 250, 240, 0.72);
}

.tile-title {
  display: block;
  max-width: 13ch;
  margin-top: 16px;
  font-size: clamp(1.35rem, 2.1vw, 2.3rem);
  font-weight: 900;
  line-height: 0.98;
}

.tile-feature .tile-title {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
}

.tile-copy {
  max-width: 28ch;
  margin-top: 12px;
  color: rgba(39, 35, 31, 0.72);
  font-size: 0.96rem;
  line-height: 1.45;
}

.tile-feature .tile-copy {
  max-width: 31ch;
  color: rgba(255, 250, 240, 0.78);
  font-size: 1.05rem;
}

.tile-action {
  width: 42px;
  height: 42px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--ink);
  display: grid;
  place-items: center;
  align-self: flex-end;
}

.tile-feature .tile-action {
  background: rgba(255, 250, 240, 0.14);
  color: #fffaf0;
}

.tile-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  min-height: 66px;
  padding: 18px;
  color: #f8f1e2;
  background: var(--charcoal);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.82rem;
}

footer a {
  color: var(--sun);
  font-weight: 400;
}

.footer-heart {
  width: 13px;
  height: 13px;
  margin: 0 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}

@media (max-width: 900px) {
  .page-shell {
    min-height: auto;
    padding-top: 16px;
  }

  .profile-panel {
    min-height: auto;
    gap: 16px;
  }

  .brand-mark {
    width: 124px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 420px);
    gap: 10px;
  }

  .profile-panel,
  .tile {
    border-radius: 18px;
  }

  .profile-panel {
    padding: 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-mark {
    width: 94px;
  }

  h1 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
  }

  .intro {
    font-size: 0.92rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .tile,
  .tile-feature,
  .tile-map,
  .tile-family,
  .tile-books,
  .tile-school,
  .tile-shop,
  .tile-studio {
    grid-column: 1;
    grid-row: auto;
    min-height: 154px;
  }

  .tile-feature {
    min-height: 212px;
  }

  .tile {
    padding: 19px;
  }

  .tile-title,
  .tile-feature .tile-title {
    max-width: 14ch;
  }

  .tile-action {
    width: 38px;
    height: 38px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
