/* The front door of the same illustrated manuscript used by the inner rooms. */
html body .home-shell {
  background: radial-gradient(ellipse 80% 450px at 50% 0%, #fff9eb, transparent),
    linear-gradient(120deg, #ead9bc, #f5e9d2 48%, #ead8b9);
}
html body .home-shell::before,
html body .home-shell::after { display: none; }
html body .home-topbar {
  max-width: 1120px;
  border-bottom-color: #d6be99;
  color: #57422e;
}
html body .home-brand { color: #66462b; font-size: 15px; letter-spacing: .16em; }
html body .home-hero {
  position: relative;
  width: min(calc(100% - 32px), 1080px);
  min-height: 0;
  margin: clamp(18px, 3vw, 35px) auto 0;
  padding: clamp(27px, 5vw, 60px);
  gap: clamp(12px, 3vw, 36px);
  border: 1px solid #c9a979;
  border-radius: 8px 30px 8px 30px;
  background: radial-gradient(ellipse 68% 60% at 78% 90%, #e8e6cf, transparent), linear-gradient(145deg, #fffdf5, #f7ebd6);
  box-shadow: 0 21px 46px rgba(88,61,33,.13), inset 0 0 0 6px rgba(255,255,255,.46);
  overflow: hidden;
}
html body .home-hero::before {
  inset: 12px;
  width: auto;
  height: auto;
  left: 12px;
  bottom: 12px;
  transform: none;
  border: 1px solid rgba(164,124,72,.3);
  border-radius: 3px 23px 3px 23px;
  background: none;
}
html body .home-hero-text { position: relative; z-index: 2; }
html body .home-hero-greeting { color: #9a6441; font: 600 12px/1.5 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
html body .home-hero-text h1 { margin-top: 9px; color: #4d3829; font-size: clamp(2.4rem, 2rem + 2.5vw, 4.2rem); line-height: 1.12; }
html body .home-hero-cta { min-height: 46px; margin-top: 24px; border-radius: 5px; background: #955d3b; color: #fff9ed; box-shadow: 0 7px 18px rgba(99,54,28,.17); }
html body .home-hero-art { position: relative; z-index: 1; width: min(100%, 450px); margin: 0 auto -20px; }
html body .home-hero-art img { filter: drop-shadow(0 13px 11px rgba(97,72,38,.15)); }
html body .home-directory-head { width: min(calc(100% - 32px), 1000px); margin: clamp(28px, 5vw, 50px) auto 18px; }
html body .home-directory-head p { color: #906645; }
html body .home-directory-head h2 { color: #563e2b; font-size: clamp(1.45rem, 1.2rem + 1.4vw, 2.2rem); }
html body .home-directory-head::before,
html body .home-directory-head::after { background: #c9a778; }
html body .home-grid {
  position: relative;
  width: min(calc(100% - 32px), 1080px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(15px, 2.4vw, 28px);
  gap: clamp(10px, 1.5vw, 16px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  border: 1px solid #cdb28a;
  border-radius: 7px 23px 7px 23px;
  background: linear-gradient(145deg, #fffaf0, #f8ecd6);
  box-shadow: 0 16px 35px rgba(87,56,27,.1), inset 0 0 0 5px rgba(255,255,255,.3);
}
html body .home-tile,
html body .home-tile:nth-child(n) {
  min-width: 0;
  min-height: 148px;
  padding: 18px 13px 15px;
  border: 1px solid #dfccac;
  border-top: 3px solid var(--tile-accent);
  border-radius: 5px 17px 5px 17px;
  background: #fffdf7;
  box-shadow: 0 4px 10px rgba(82,54,27,.045);
  text-align: center;
}
html body .home-tile:nth-child(4n + 2) { background: #f8f8ec; }
html body .home-tile:nth-child(4n + 3) { background: #fbf1e9; }
html body .home-tile::before,
html body .home-tile::after { display: none; }
html body .home-tile-icon { height: 62px; margin: 0 0 5px; }
html body .home-tile-icon img { width: 65px; height: 65px; }
html body .home-tile-label { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--tile-accent); }
html body .home-tile-desc { margin-top: 4px; color: #6d5943; font-size: 12px; line-height: 1.45; }
html body .home-tile-chat,
html body .home-tile.home-tile-chat:nth-child(n) {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: start;
  min-height: 145px;
  padding: 16px clamp(19px, 4vw, 45px);
  background: linear-gradient(110deg, #f5dfca, #fff9ed);
  text-align: left;
}
html body .home-tile-chat .home-tile-icon { grid-row: 1 / 3; height: 100px; }
html body .home-tile-chat .home-tile-icon img { width: 100px; height: 100px; }
html body .home-tile-chat .home-tile-label { align-self: end; font-size: 1.8rem; }
html body .home-tile-chat .home-tile-desc { align-self: start; font-size: 14px; }
html body .home-footer { color: #89745c; padding: 25px 12px 35px; }

@media (min-width: 700px) {
  html body .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html body .home-tile-chat { grid-column: span 2; }
}
@media (min-width: 1200px) {
  html body .home-hero { flex-direction: row; align-items: center; justify-content: space-between; }
  html body .home-hero-text { flex: 1 1 45%; text-align: left; }
  html body .home-hero-art { flex: 1 1 50%; width: min(48vw, 500px); max-width: 500px; margin: -30px -15px -52px 0; }
}
@media (max-width: 480px) {
  html body .home-hero { padding: 30px 23px 18px; }
  html body .home-hero-text h1 { font-size: 2.35rem; }
  html body .home-hero-art { width: min(100%, 330px); margin-bottom: -26px; }
  html body .home-grid { padding: 13px; }
  html body .home-tile,
  html body .home-tile:nth-child(n) { min-height: 139px; padding: 14px 8px; }
  html body .home-tile-icon { height: 56px; }
  html body .home-tile-icon img { width: 58px; height: 58px; }
  html body .home-tile-chat,
  html body .home-tile.home-tile-chat:nth-child(n) { min-height: 133px; grid-template-columns: 80px minmax(0, 1fr); padding: 15px; }
  html body .home-tile-chat .home-tile-icon { height: 80px; }
  html body .home-tile-chat .home-tile-icon img { width: 80px; height: 80px; }
}

html[data-theme="dark"] body .home-shell { background: radial-gradient(ellipse 78% 450px at 50% 0%, #53412d, transparent), linear-gradient(120deg, #2d261f, #3a3026 48%, #28231f); }
html[data-theme="dark"] body .home-topbar { border-bottom-color: #72583e; }
html[data-theme="dark"] body .home-brand { color: #ebcb99; }
html[data-theme="dark"] body .home-hero { border-color: #8b6946; background: radial-gradient(ellipse 64% 62% at 78% 90%, #4c4632, transparent), linear-gradient(145deg, #45382b, #332b24); box-shadow: 0 20px 45px rgba(0,0,0,.28); }
html[data-theme="dark"] body .home-hero::before { border-color: rgba(225,175,105,.2); }
html[data-theme="dark"] body .home-hero-greeting { color: #e4b388; }
html[data-theme="dark"] body .home-hero-text h1 { color: #fff0d6; }
html[data-theme="dark"] body .home-hero-cta { background: #b4805c; color: #fff7e7; }
html[data-theme="dark"] body .home-hero-art img { filter: drop-shadow(0 15px 19px rgba(0,0,0,.38)) brightness(.91) saturate(.9); }
html[data-theme="dark"] body .home-directory-head h2 { color: #f5e3c8; }
html[data-theme="dark"] body .home-directory-head p { color: #d3a375; }
html[data-theme="dark"] body .home-grid { border-color: #765a3e; background: linear-gradient(145deg, #41352a, #302921); box-shadow: 0 16px 35px rgba(0,0,0,.23); }
html[data-theme="dark"] body .home-tile,
html[data-theme="dark"] body .home-tile:nth-child(n) { border-color: #745d42; border-top-color: var(--tile-accent); background: #4b3c2f; box-shadow: 0 4px 10px rgba(0,0,0,.13); }
html[data-theme="dark"] body .home-tile:nth-child(4n + 2) { background: #3d3f30; }
html[data-theme="dark"] body .home-tile:nth-child(4n + 3) { background: #4a3933; }
html[data-theme="dark"] body .home-tile.home-tile-chat:nth-child(n) { background: linear-gradient(110deg, #5b4033, #48362c); }
html[data-theme="dark"] body .home-tile-desc { color: #ddccb3; }
html[data-theme="dark"] body .home-footer { color: #bea98d; }
