:root {
  --paper: #f2eee6;
  --cream: #e7dfd2;
  --ink: #49443c;
  --muted: #8d877d;
  --line: #d9d1c5;
  --blue: #72858d;
  --accent: #a18e76
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased
}

button,
a,
input {
  touch-action: manipulation
}

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

button {
  font: inherit;
  cursor: pointer;
  color: inherit
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px
}

header {
  height: 100px;
  margin: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line)
}

.logo {
  width: 214px;
  height: 42px;
  object-fit: contain
}

nav {
  display: flex;
  gap: 34px;
  font-size: 12px
}

nav a {
  padding: 12px 0
}

#count {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px 7px;
  margin-left: 7px
}

main {
  min-height: 70vh
}

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal
}

h1 {
  font-size: clamp(42px, 5.8vw, 86px);
  line-height: 1.04;
  letter-spacing: -2px
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1.2px
}

p {
  line-height: 1.8
}

.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted)
}

.wrap {
  width: min(1280px, 90vw);
  margin: auto
}

.hero {
  padding: 85px 0 60px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center
}

.hero p {
  max-width: 380px;
  color: #787166
}

.hero .eyebrow {
  margin-bottom: 30px
}

.hero-art {
  height: 460px;
  position: relative;
  border-radius: 50% 50% 4px 4px;
  background: #e9e1d4;
  display: flex;
  align-items: flex-end;
  padding: 20px 10px 35px;
  overflow: hidden
}

.hero-art:before {
  content: "GOOD FINDS / GOOD COMPANY";
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: #9b8d7e
}

.hero-art img {
  width: 29%;
  margin-left: -3%;
  object-fit: contain;
  filter: drop-shadow(0 15px 8px #75654c18)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 17px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  min-height: 48px
}

.btn.secondary {
  color: var(--ink);
  background: transparent
}

.btn.small {
  padding: 11px 17px;
  min-height: 44px
}

.text-link {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
  padding: 8px 0;
  font-size: 12px
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
  margin: 30px 0
}

.section-top p {
  max-width: 340px;
  color: #8b8479;
  font-size: 12px
}

.collection {
  padding: 50px 0 85px;
  border-top: 1px solid var(--line)
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.item-card {
  display: block;
  position: relative;
  transition: transform .25s
}

.item-card:hover {
  transform: translateY(-5px)
}

.paper-card {
  background: #f8f5ef;
  border: 1px solid #ddd4c5;
  padding: 20px 18px 15px;
  box-shadow: 0 10px 20px #46382708;
  aspect-ratio: 63/88;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.paper-card img.wordmark {
  width: 78%;
  height: 30px;
  align-self: center;
  object-fit: contain
}

.photo-blank {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 18px;
  border: 1px solid #e9e2d6;
  background: linear-gradient(135deg, #ede8df, #f5f0e7);
  color: #a8a092
}

.photo-blank svg {
  width: 32px;
  height: 32px;
  stroke: #bab1a2;
  fill: none;
  stroke-width: 1
}

.photo-blank span {
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase
}

.card-foot {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9b9285;
  text-align: center
}

.item-meta {
  padding: 16px 1px
}

.item-meta h3 {
  font-size: 13px;
  font-weight: normal;
  margin: 7px 0
}

.item-meta p {
  font-size: 10px;
  color: #969085;
  margin: 0
}

.archive-status {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 8px;
  font-size: 9px;
  letter-spacing: 1px
}

.principle {
  background: #e7e1d5;
  padding: 65px 5vw;
  text-align: center
}

.principle h2 {
  max-width: 750px;
  margin: 0 auto 25px
}

.principle p {
  font-size: 12px;
  color: #81796d
}

.product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  padding: 45px 0 80px
}

.breadcrumb {
  font-size: 11px;
  padding: 28px 0 0;
  color: var(--muted)
}

.viewer-photo {
  height: 570px;
  background: #e9e3d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: pan-y;
  user-select: none;
  border: 1px solid #dfd7ca
}

.viewer-photo img {
  height: 100%;
  width: 100%;
  object-fit: contain
}

.view-count {
  position: absolute;
  left: 23px;
  top: 23px
}

.viewer-photo .photo-blank {
  width: 68%;
  max-height: 340px;
  background: transparent;
  border: 1px solid #d5ccbe;
  margin: 0
}

.viewer-photo .photo-blank svg {
  width: 60px;
  height: 60px
}

.view-label {
  position: absolute;
  bottom: 28px;
  font-family: Georgia, serif;
  font-size: 21px;
  color: #8d8171
}

.hint {
  font-size: 10px;
  color: #9d9487;
  text-align: center;
  margin-top: 14px
}

.product-details {
  padding-top: 24px
}

.product-details h1 {
  font-size: 49px;
  letter-spacing: -1px;
  margin: 20px 0 12px
}

.product-details .sub {
  font-size: 12px;
  color: #908576;
  margin-bottom: 28px
}

.identity-pill {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center
}

.identity-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia;
  font-size: 18px
}

.identity-pill strong {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 1px
}

.identity-pill p {
  font-size: 10px;
  margin: 5px 0 0;
  color: #958b7d
}

.data-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 27px 0
}

.data-table div {
  font-size: 11px
}

.data-table span {
  display: block;
  color: #a09788;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px
}

.purchase {
  width: 100%;
  justify-content: space-between
}

.disclaimer {
  font-size: 10px;
  color: #a09583;
  margin: 12px 0
}

.panel {
  margin: 40px 0;
  border-top: 1px solid var(--line);
  padding-top: 25px
}

.panel h3 {
  font-weight: normal;
  font-size: 13px
}

.panel p {
  font-size: 12px;
  color: #93897b
}

.archive-head {
  padding: 70px 0 35px
}

.archive-head h1 {
  font-size: 68px;
  margin: 18px 0
}

.empty {
  padding: 80px 20px;
  text-align: center;
  border: 1px solid var(--line);
  margin: 20px 0 70px
}

.empty p {
  color: var(--muted);
  font-family: Georgia;
  font-size: 24px
}

.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 50px 0;
  margin-top: 50px;
  border-top: 1px solid var(--line)
}

.profile h2 {
  font-size: 40px
}

.bar {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  margin: 16px 0
}

.bar i {
  height: 4px;
  background: #e0d7c9;
  display: block
}

.bar b {
  height: 4px;
  background: var(--blue);
  display: block
}

.reveal {
  min-height: calc(100vh - 100px);
  background: radial-gradient(ellipse at 50% 40%, #eee5d5, #d0c4b0);
  text-align: center;
  padding: 40px 5vw 55px;
  overflow: hidden
}

.reveal h1 {
  font-size: 44px;
  letter-spacing: 1px;
  margin: 15px 0 9px
}

.reveal .role {
  font-size: 11px;
  letter-spacing: 3px;
  color: #827565
}

.reveal p {
  font-family: Georgia;
  font-size: 16px;
  color: #847663
}

.reveal .actions {
  display: flex;
  gap: 15px;
  justify-content: center
}

.story-page {
  padding: 40px 0 70px
}

.story-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px
}

.story-top h1 {
  font-size: 38px;
  letter-spacing: -.7px;
  margin: 8px 0
}

.story-top p {
  font-size: 11px;
  color: #918574;
  margin: 0
}

.memory-note {
  padding: 35px 0;
  max-width: 740px;
  margin: auto;
  text-align: center
}

.memory-note .serif {
  font-size: 24px;
  line-height: 1.5
}

.memory-note small {
  display: block;
  color: #9e9383;
  font-size: 10px;
  margin: 12px 0
}

.studio {
  padding: 55px 0
}

.studio-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  margin-top: 35px
}

.studio aside {
  padding: 30px 0
}

.studio h1 {
  font-size: 52px
}

.char-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 14px;
  font-size: 10px
}

.chip.active {
  background: var(--ink);
  color: var(--paper)
}

.studio aside p {
  font-size: 12px;
  color: #978a77
}

.modal-shade {
  position: fixed;
  inset: 0;
  background: #29241d75;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px
}

.modal {
  background: var(--paper);
  padding: 42px;
  width: min(480px, 100%);
  position: relative
}

.modal-shade {
  overflow-y: auto
}

.modal {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto
}

.modal h2 {
  font-size: 37px;
  margin: 22px 0
}

.modal p {
  font-size: 12px;
  color: #908372
}

.modal .btn {
  width: 100%;
  margin-top: 20px
}

.close {
  position: absolute;
  right: 18px;
  top: 15px;
  border: 0;
  background: transparent;
  font-size: 22px
}

.row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px
}

footer {
  padding: 40px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 10px;
  color: #978c7c
}

footer img {
  width: 120px;
  height: auto
}

footer p {
  margin: 0 auto 0 0
}

footer button {
  border: 0;
  background: none;
  font-size: 10px;
  color: inherit
}

footer small {
  width: 100%;
  font-size: 9px;
  color: #ada18e
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  z-index: 40;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s
}

#toast.show {
  opacity: 1
}

.bottom-space {
  padding-bottom: 70px
}

@media(max-width:800px) {
  header {
    height: 78px
  }

  .logo {
    width: 155px
  }

  nav {
    gap: 17px;
    font-size: 10px
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 50px 0 35px;
    gap: 28px
  }

  .hero h1 {
    font-size: 56px
  }

  .hero-art {
    height: 325px
  }

  .hero-art:before {
    top: 28px
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
  }

  .paper-card {
    padding: 16px 10px 12px
  }

  .paper-card img.wordmark {
    height: 21px
  }

  .photo-blank {
    margin: 20px 0 14px
  }

  .section-top {
    align-items: start;
    flex-direction: column;
    gap: 0
  }

  .section-top h2 {
    margin-bottom: 10px
  }

  .product {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 23px
  }

  .viewer-photo {
    height: 470px
  }

  .product-details {
    padding-top: 15px
  }

  .product-details h1 {
    font-size: 44px
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .archive-head h1 {
    font-size: 52px
  }

  .reveal {
    padding-top: 35px
  }

  .reveal .actions {
    flex-direction: column;
    max-width: 320px;
    margin: auto
  }

  .story-top {
    display: block
  }

  .story-top .text-link {
    margin-top: 12px
  }

  .story-top h1 {
    font-size: 35px
  }

  .studio-main {
    grid-template-columns: 1fr
  }

  .studio aside {
    padding: 0
  }

  .modal {
    padding: 35px 25px
  }

  .collection {
    padding-top: 28px
  }

  .hero-art img {
    width: 29%
  }

  footer {
    gap: 17px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important
  }
}

.hero-art {
  justify-content: center;
  padding: 70px 16px 45px;
  align-items: flex-end
}

.hero-art img {
  width: 36%;
  flex: 0 0 36%;
  margin: 0 0 0 -11%;
  align-self: flex-end;
  position: relative
}

.hero-art img:first-child {
  margin-left: 0;
  z-index: 4
}

@media(max-width:700px) {
  .hero-art {
    height: 325px;
    padding: 58px 12px 28px
  }

  .hero-art img {
    width: 36%;
    flex-basis: 36%
  }
}

.companion-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ede5d9
}

.reveal {
  background: #ede5d9
}

.studio-main {
  align-items: center
}

@media(max-width:800px) {
  .studio-main {
    gap: 20px
  }
}

.reveal,
.companion-video {
  background: #ece4d8
}

.hero-art {
  display: grid;
  place-items: center;
  padding: 72px 6px 12px;
  overflow: hidden
}

.hero-art img.family-portrait {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
  align-self: center;
  filter: none;
  position: static
}

.viewer-photo {
  cursor: grab;
  touch-action: pan-y
}

.viewer-photo.dragging {
  cursor: grabbing
}

.viewer-photo img {
  pointer-events: none;
  -webkit-user-drag: none
}

.viewer-photo .photo-blank {
  flex: none;
  height: 60%;
  max-height: 340px;
  width: 68%
}

@media(max-width:800px) {
  .hero-art {
    height: auto;
    min-height: 290px;
    padding: 62px 3px 14px
  }

  .hero-art img.family-portrait {
    width: 100%;
    max-height: none
  }
}

.hero-art img.family-portrait {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.hero-art {
  padding: 35px 0 0
}

.motion-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f2e9dc;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 3px
}

.motion-player.motion-square {
  aspect-ratio: 1
}

.motion-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.motion-player video[hidden] {
  display: none
}

.motion-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0
}

.motion-controls [role=status] {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted)
}

.motion-fallback {
  height: 100%;
  text-align: center;
  padding: 25px
}

.motion-fallback[hidden] {
  display: none
}

.motion-fallback img {
  height: 75%;
  max-width: 100%;
  object-fit: contain
}

.motion-fallback p {
  font-size: 12px
}

.arrival-film {
  width: min(380px, 100%);
  margin: 0 auto
}

.reveal {
  padding: 28px 5vw 40px;
  background: var(--paper)
}

.reveal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -.7px;
  margin: 12px 0
}

.reveal .eyebrow,
.reveal .arrival-hint {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px
}

.reveal .arrival-message {
  margin-bottom: 20px;
  color: var(--ink)
}

.reveal .arrival-hint {
  margin: 14px 0 0
}

.reveal .motion-controls {
  justify-content: center;
  gap: 18px
}

.reveal .motion-controls [role=status] {
  display: none
}

.checkout-page {
  padding: 35px 0 65px
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: 32px
}

.checkout-image {
  background: var(--cream);
  aspect-ratio: 1;
  display: grid;
  place-items: center
}

.checkout-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0
}

.checkout-summary h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  margin-bottom: 20px
}

.checkout-summary h2 {
  font: 24px/1.3 Georgia, serif;
  letter-spacing: 0;
  margin-bottom: 25px
}

.checkout-summary .btn {
  width: 100%;
  margin: 8px 0 12px
}

.checkout-summary .row {
  gap: 20px
}

.story-collection-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 30px
}

.story-collection-link p {
  margin: 0;
  font-size: 13px
}

@media (max-width: 700px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px
  }

  .checkout-image {
    width: min(270px, 100%);
    margin: auto
  }

  .checkout-summary h2 {
    font-size: 22px
  }

  .story-collection-link {
    align-items: stretch;
    flex-direction: column
  }
}

.story-beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 38px 0;
  border-top: 1px solid var(--line)
}

.story-beats h3 {
  font: 22px Georgia
}

.story-beats p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted)
}

.studio-main {
  grid-template-columns: minmax(0, 1fr) 320px
}

.story-page>h1 {
  margin-bottom: 22px
}

@media(max-width:800px) {
  .studio-main {
    grid-template-columns: 1fr
  }

  .story-beats {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .motion-controls {
    gap: 15px;
    flex-wrap: wrap
  }

  .motion-controls [role=status] {
    font-size: 10px
  }

  .story-top {
    padding-bottom: 10px
  }
}

@media(max-width:400px) {
  .story-beats {
    grid-template-columns: 1fr
  }

  .motion-controls [role=status] {
    width: 100%;
    margin: 0
  }
}

.home-section {
  padding: 76px 0;
  border-top: 1px solid var(--line)
}

.brand-intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 90px
}

.brand-intro h2 {
  margin: 20px 0
}

.brand-copy {
  max-width: 620px
}

.brand-copy p {
  font-size: 14px;
  color: #716a60;
  line-height: 1.9
}

.brand-copy .brand-lead {
  font: 26px/1.45 Georgia, serif;
  color: var(--ink)
}

.brand-copy .brand-signoff {
  font: italic 24px/1.5 Georgia, serif;
  color: var(--ink);
  margin: 25px 0 0
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap
}

.home-section .section-top {
  margin: 0 0 34px
}

.home-section .section-top h2 {
  margin-bottom: 0
}

.style-families,
.brand-journey,
.personality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px
}

.style-family {
  padding: 27px 23px 23px;
  background: #e6e3dc;
  min-height: 250px;
  display: flex;
  flex-direction: column
}

.family-1 {
  background: #ece0d6
}

.family-2 {
  background: #e6e2df
}

.family-3 {
  background: #e3e5da
}

.family-number {
  font: italic 34px Georgia, serif;
  color: #8b8172;
  margin-bottom: 25px
}

.home-page h3 {
  font: 23px/1.2 Georgia, serif;
  font-weight: normal
}

.style-family p,
.brand-journey p,
.personality-grid p {
  font-size: 13px;
  color: #716a60;
  line-height: 1.8
}

.family-examples {
  font-size: 10px;
  line-height: 1.7;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #a99e8b55;
  letter-spacing: .4px
}

.brand-journey {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 34px
}

.brand-journey li {
  border-top: 1px solid var(--line);
  padding-top: 24px
}

.brand-journey h3 {
  margin: 18px 0
}

.companion-name {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  border-bottom: 3px solid var(--companion-tone);
  padding-bottom: 10px;
  margin-bottom: 24px
}

.personality-grid h3 {
  font-size: 21px
}

.story-disclosure {
  margin-top: 30px;
  padding: 23px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px
}

.story-disclosure p {
  max-width: 770px;
  font-size: 12px;
  color: #716a60;
  margin: 0
}

.story-disclosure a {
  flex-shrink: 0
}

.home-closing {
  padding: 75px 5vw
}

.home-closing p {
  color: #716a60
}

.home-closing .btn {
  margin-top: 12px
}

@media(max-width:900px) {
  .brand-intro {
    gap: 40px
  }

  .style-families,
  .brand-journey,
  .personality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .style-family {
    min-height: 235px
  }

  .home-section {
    padding: 50px 0
  }

  .story-disclosure {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px
  }
}

@media(max-width:540px) {
  .brand-intro {
    grid-template-columns: 1fr;
    gap: 8px
  }

  .brand-copy .brand-lead {
    font-size: 24px
  }

  .style-families,
  .brand-journey,
  .personality-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .style-family {
    min-height: 0
  }

  .family-number {
    margin-bottom: 16px
  }

  .personality-grid article {
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px
  }

  .companion-name {
    margin-bottom: 15px
  }

  .home-page .hero h1 {
    font-size: clamp(42px, 12vw, 56px)
  }

  .home-actions {
    gap: 16px
  }

  .home-page h2 {
    font-size: 36px
  }

  .home-closing {
    padding: 55px 5vw
  }
}

.character-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1.12;
  background: #eae3d7;
  border-radius: 48% 48% 3px 3px;
  margin-bottom: 24px;
  padding: 20px 14px 10px;
  overflow: hidden
}

.character-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease
}

.character-portrait:hover img {
  transform: translateY(-4px)
}

@media(max-width:540px) {
  .character-portrait {
    max-width: 320px;
    margin: 0 auto 24px;
    width: 100%
  }
}

.paper-card .card-product-image {
  width: 100%;
  height: 0;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  margin: 15px 0;
  background: white
}

.product-angle-viewer {
  height: auto;
  aspect-ratio: 4/5;
  background: white;
  touch-action: none;
  overflow: hidden
}

.product-angle-viewer #photo-slot {
  width: 100%;
  height: 100%
}

.product-angle-viewer #photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.product-angle-viewer .view-count {
  z-index: 1;
  background: #f2eee6e8;
  padding: 7px;
  left: 12px;
  top: 12px
}

.product-angle-viewer .view-label {
  font: 12px Arial;
  background: #f2eee6e8;
  padding: 8px 12px;
  bottom: 12px;
  left: 12px
}

.zoom-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  z-index: 2
}

.angle-directions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 15px
}

.angle-directions button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 8px;
  font-size: 11px
}

.angle-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0
}

.angle-thumbnails button {
  padding: 5px;
  background: #f7f4ee;
  border: 1px solid var(--line)
}

.angle-thumbnails button.active {
  border: 2px solid var(--ink);
  padding: 4px
}

.angle-thumbnails img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: white;
  display: block
}

.angle-thumbnails span {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  padding: 8px 2px
}

.angle-thumbnails b {
  font-size: 9px;
  padding: 2px 4px;
  background: #e0d6c8;
  font-weight: normal;
  white-space: nowrap
}

.image-note {
  font-size: 11px;
  color: #837a6c;
  line-height: 1.7
}

.product-description {
  font-size: 14px;
  line-height: 1.8
}

.product-features {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 28px
}

.product-details .data-table div {
  line-height: 1.6
}

.zoom-dialog {
  background: var(--paper);
  width: min(950px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  padding: 18px
}

.zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding-right: 45px;
  flex-wrap: wrap
}

.zoom-toolbar h2 {
  font: 22px Georgia;
  margin: 0 auto 0 0
}

.zoom-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px
}

.zoom-toolbar input {
  width: 120px
}

.zoom-toolbar output {
  font-size: 11px
}

.zoom-toolbar .close {
  top: 0;
  right: 0
}

.zoom-canvas {
  overflow: auto;
  height: 65vh;
  margin-top: 18px;
  background: white
}

.zoom-canvas img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto
}

.zoom-dialog>p {
  font-size: 11px;
  margin: 12px 0 0
}

.product-gallery {
  min-width: 0
}

@media(max-width:540px) {
  .product-details h1 {
    font-size: 38px
  }

  .angle-directions {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .zoom-toolbar h2 {
    width: 100%;
    font-size: 20px
  }

  .zoom-canvas {
    height: 60vh
  }

  .angle-thumbnails img {
    height: 80px
  }
}

.style-explainer {
  margin-top: 30px;
  padding: 28px 32px;
  background: #eae4d9;
  max-width: 100%
}

.style-explainer p {
  max-width: 980px;
  font-size: 13px;
  color: #716a60
}

.style-keywords {
  font-size: 11px !important;
  letter-spacing: .5px
}

.character-personality {
  font-size: 12px !important
}

.style-reason {
  padding: 24px 0 4px
}

.style-reason h3 {
  font: 22px Georgia
}

.style-reason p {
  font-size: 12px;
  color: #716a60
}

.style-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0
}

.style-tags span {
  padding: 6px 10px;
  background: #e6dfd3;
  font-size: 10px
}

.type-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px
}

.profile .bar {
  grid-template-columns: 135px 1fr 34px
}

.profile .disclaimer {
  line-height: 1.8
}

@media(max-width:540px) {
  .style-explainer {
    padding: 22px
  }

  .profile .bar {
    grid-template-columns: 120px 1fr 34px
  }
}

.memory-collection,
.fragment-page {
  padding-bottom: 80px
}

.memory-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px
}

.memory-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.memory-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.memory-card {
  min-width: 0
}

.memory-art {
  display: block;
  aspect-ratio: 63/88;
  filter: drop-shadow(0 9px 12px #51483b10)
}

.memory-art img,
.fragment-art img,
.intro-card-art img {
  display: block;
  width: 100%;
  height: auto
}

.memory-card a.memory-art {
  transition: transform .25s ease
}

.memory-card a.memory-art:hover {
  transform: translateY(-5px)
}

.memory-card-copy {
  padding: 22px 5px
}

.memory-card-copy h3 {
  font: 23px/1.3 Georgia;
  margin: 12px 0
}

.memory-card-copy p:not(.eyebrow) {
  font-size: 12px;
  color: #736c60;
  line-height: 1.75
}

.memory-card-copy .eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px
}

.development-label {
  display: inline-block;
  font-size: 10px;
  line-height: 1.5;
  color: #6c655b;
  border: 1px solid var(--line);
  padding: 8px 10px
}

.chapter-section {
  border-top: 1px solid var(--line);
  padding-top: 50px;
  margin-top: 60px
}

.future-collection {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center
}

.future-collection>div>p:not(.eyebrow),
.section-description {
  max-width: 580px;
  font-size: 14px;
  line-height: 1.8;
  color: #716a60
}

.future-collection h2 {
  margin: 22px 0
}

.archive-memories {
  padding-top: 65px
}

.fragment-page {
  padding-top: 35px
}

.fragment-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) 1.15fr;
  gap: 90px;
  align-items: center;
  margin: 40px 0 70px
}

.fragment-art {
  max-width: 400px;
  width: 100%;
  margin: auto;
  filter: drop-shadow(0 14px 22px #52452f14)
}

.fragment-copy h1 {
  font-size: clamp(42px, 4.5vw, 70px);
  margin: 22px 0
}

.fragment-copy>.serif {
  font-size: 24px
}

.fragment-copy>p:not(.eyebrow):not(.serif) {
  font-size: 14px;
  line-height: 1.8;
  color: #716a60
}

.fragment-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 28px 0
}

.fragment-actions .btn {
  min-width: 290px;
  justify-content: space-between
}

.fragment-item {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 30px
}

.future-note {
  padding: 35px 0;
  border-top: 1px solid var(--line)
}

.future-note h2 {
  font-size: 36px
}

.future-note>p {
  max-width: 650px;
  font-size: 13px;
  line-height: 1.8
}

.future-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px
}

.future-inline span {
  border: 1px solid var(--line);
  padding: 12px 15px;
  font-size: 11px
}

.public-character {
  grid-template-columns: 1.1fr 1fr;
  gap: 65px
}

.studio-portrait {
  height: 510px;
  display: grid;
  place-items: center;
  background: #eae3d7;
  border-radius: 48% 48% 4px 4px;
  overflow: hidden
}

.studio-portrait img {
  height: 92%;
  width: 90%;
  object-fit: contain
}

.public-character aside h2 {
  margin: 16px 0
}

.public-character aside p {
  font-size: 13px;
  line-height: 1.8;
  color: #716a60
}

.public-character aside .btn {
  font-size: 12px;
  margin-top: 20px
}

.product-memory-teaser {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 22px;
  margin: 15px 0 25px;
  padding: 20px;
  background: #eae4d9
}

.product-memory-teaser img {
  width: 100%;
  height: auto
}

.product-memory-teaser h3 {
  font: 21px/1.3 Georgia;
  margin: 10px 0
}

.product-memory-teaser p {
  font-size: 12px;
  line-height: 1.75;
  color: #716a60
}

.product-memory-teaser .eyebrow {
  font-size: 9px
}

.card-intro {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 90px;
  align-items: center
}

.intro-card-art {
  max-width: 260px;
  justify-self: center;
  transform: rotate(-5deg);
  filter: drop-shadow(9px 16px 15px #55452c18)
}

.card-intro p {
  font-size: 14px;
  line-height: 1.85;
  color: #716a60
}

.card-intro h2 {
  margin: 22px 0
}

.memory-collection .archive-head>p {
  line-height: 1.8
}

.memory-card .text-link {
  font-size: 12px
}

:focus-visible {
  outline: 2px solid #777d6b;
  outline-offset: 5px
}

@media(max-width:900px) {
  .memory-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px
  }

  .future-collection {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .fragment-layout {
    gap: 40px
  }

  .card-intro {
    gap: 50px
  }

  .public-character {
    gap: 35px
  }

  .studio-portrait {
    height: 430px
  }
}

@media(max-width:600px) {
  .memory-card-grid.three {
    grid-template-columns: 1fr
  }

  .memory-card-grid,
  .memory-card-grid.two {
    gap: 15px
  }

  .memory-card-copy {
    padding: 17px 2px
  }

  .memory-card-copy h3 {
    font-size: 20px
  }

  .memory-card-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 1px
  }

  .memory-card-grid.three .memory-card {
    max-width: 330px;
    margin: auto;
    width: 100%
  }

  .fragment-layout,
  .card-intro,
  .public-character {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .fragment-art {
    max-width: 270px
  }

  .fragment-copy h1 {
    font-size: 43px
  }

  .fragment-actions .btn {
    min-width: 0;
    width: 100%
  }

  .fragment-layout {
    margin: 30px 0 45px
  }

  .intro-card-art {
    max-width: 200px;
    margin-bottom: 15px
  }

  .product-memory-teaser {
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 15px
  }

  .studio-portrait {
    height: 360px
  }

  .future-note h2 {
    font-size: 30px
  }

  .chapter-section {
    margin-top: 40px;
    padding-top: 35px
  }

  .memory-collection .archive-head h1 {
    font-size: 43px
  }

  .memory-collection .archive-head {
    padding-top: 45px
  }

  .future-collection .memory-card-copy h3 {
    font-size: 20px
  }
}

@media(max-width:360px) {

  .memory-card-grid,
  .memory-card-grid.two {
    grid-template-columns: 1fr
  }

  .memory-card {
    max-width: 290px;
    margin: auto;
    width: 100%
  }
}

.memory-card:not(.is-future) .memory-art {
  aspect-ratio: 2/3
}

.memory-card:not(.is-future) .memory-art img {
  height: 100%;
  object-fit: cover;
  border-radius: 3px
}

.memory-card.is-locked .memory-art {
  filter: drop-shadow(0 9px 12px #51483b10)
}

.fragment-art img,
.intro-card-art img {
  border-radius: 3px
}

.fragment-art {
  max-width: 390px
}

.memory-card-copy h3 {
  font-size: 24px;
  line-height: 1.25
}

.memory-card-copy .eyebrow {
  margin-top: 0
}

.memory-card.is-locked .memory-card-copy .eyebrow {
  color: #776959
}

.memory-card.is-unlocked .memory-card-copy .eyebrow {
  color: #4C6653
}

.memory-collection .archive-head {
  padding-top: 50px;
  padding-bottom: 35px
}

@media(max-width:600px) {
  .memory-card-copy h3 {
    font-size: 21px
  }

  .fragment-art {
    max-width: 280px
  }
}

/* Navigation and dialogs share the same keyboard treatment. */
nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

#app:focus {
  outline: none;
}

@media (max-width: 540px) {
  header {
    gap: 12px
  }

  .logo {
    width: clamp(112px, 31vw, 155px)
  }

  nav {
    gap: 12px;
    flex-shrink: 0
  }

  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap
  }

  .reveal .actions {
    max-width: 100%
  }

  .reveal .actions .btn {
    gap: 15px
  }

  .motion-controls .text-link,
  .angle-directions button,
  .zoom-toolbar .close {
    min-width: 44px;
    min-height: 44px
  }

  .story-page {
    padding-top: 28px
  }
}

@media (max-width: 360px) {
  #count {
    margin-left: 4px
  }

  nav {
    gap: 9px
  }

  .btn {
    gap: 18px
  }
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

body.dialog-open {
  overflow: hidden;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
