/* Firefly Notes — family stories, contemporary editorial edition. */
:root {
  --paper: #faf8f2;
  --white: #fffefa;
  --ink: #203e34;
  --navy: #214c3c;
  --muted: #65716a;
  --line: #dedfd4;
  --gold: #b25330;
  --sage: #5d7961;
  --orange: #c5522b;
  --orange-hover: #ab4220;
  --serif:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun",
    serif;
  --display: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
body {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #edc3a6;
  color: #203e34;
}
h1,
h2 {
  text-wrap: balance;
}
.button {
  border-radius: 999px;
  min-height: 50px;
  padding: 12px 25px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.button.primary:hover {
  background: #163c2e;
}
.button.accent {
  background: var(--orange);
  color: white;
  border: 1px solid var(--orange);
  box-shadow: 0 5px 12px #793c2010;
}
.button.accent:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
}
.button.light-button {
  color: var(--ink);
  background: #f6eddb;
}
.button.subtle {
  background: #fffdf7;
}
.button.subtle:hover {
  background: #efeee4;
}
a,
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: #b3512e;
}
.header {
  height: 86px;
  background: #fffdf8;
  border-color: #e3e3d9;
}
.header-inner {
  max-width: 1440px;
  padding: 0 64px;
  gap: 25px;
}
.brand > span {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand small {
  font-weight: 500;
  font-size: 8px;
  letter-spacing: 2.8px;
  margin-top: 7px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.top-nav {
  gap: 35px;
}
.top-nav a {
  font-size: 14px;
  color: #526258;
}
.top-nav a.active {
  font-weight: 650;
  color: #214c3c;
}
.top-nav a.active:after {
  background: #c5522b;
  height: 3px;
  width: 18px;
  border-radius: 3px;
  left: calc(50% - 9px);
}
.header-cta {
  padding: 10px 21px;
  border: 1px solid #b9c5b8;
  border-radius: 999px;
  min-height: 43px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}
.header-cta:hover {
  background: #e8eddf;
}
.local-notice {
  min-height: 31px;
  background: #e9eee2;
  color: #52624f;
  font-size: 11px;
  letter-spacing: 0.2px;
  gap: 10px;
  border-bottom: 0;
}
.local-notice a {
  font-weight: 600;
}
.status-dot {
  background: #6d805d;
}
.page-width {
  max-width: 1312px;
  width: calc(100% - 128px);
  margin-inline: auto;
}
.kicker {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.6px;
  color: #60705c;
  font-weight: 600;
}
.tiny-line {
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  height: 2px;
  background: #b95a35;
  margin-right: 10px;
}
.underlined-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: #a7b3a5;
  text-underline-offset: 7px;
}
.underlined-link:hover {
  color: #a24a2c;
  text-decoration-color: currentColor;
}
.underlined-link .icon {
  width: 18px;
  height: 18px;
}
.mobile-only {
  display: none;
}
.memory-hero {
  padding-block: 56px 65px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 52px;
}
.memory-hero-copy {
  padding-block: 10px;
}
.memory-hero h1 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(40px, 4.25vw, 62px);
  line-height: 1.4;
  letter-spacing: -1.8px;
  margin: 24px 0 25px;
  color: #203e34;
}
.memory-hero h1 em {
  color: #bd572f;
  font-style: normal;
}
.hero-lead {
  font-size: 15px;
  line-height: 2.05;
  color: #627168;
  max-width: 480px;
}
.memory-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 23px;
  margin-top: 32px;
}
.memory-hero-actions .button {
  font-size: 14px;
  padding-inline: 23px;
  min-height: 54px;
}
.hero-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 12px;
  color: #69766d;
}
.hero-footnote .icon {
  width: 16px;
  height: 16px;
}
.memory-hero-visual {
  position: relative;
  margin: 0;
  min-width: 0;
  height: 480px;
}
.family-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
  border-radius: 22px 22px 22px 80px;
  display: block;
}
.image-disclosure {
  position: absolute;
  top: 13px;
  right: 15px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: white;
  text-shadow: 0 1px 6px #000;
  background: #18302166;
  padding: 3px 8px;
  border-radius: 15px;
}
.photo-story-note {
  position: absolute;
  left: -30px;
  right: 34px;
  bottom: 24px;
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fffdf5;
  box-shadow: 0 12px 30px #1c271c12;
  border-radius: 12px;
  transition: transform 0.25s;
}
.photo-story-note:hover {
  transform: translateY(-4px);
}
.note-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf0e1;
  color: #426245;
  flex: 0 0 auto;
}
.photo-story-note small {
  font-size: 11px;
  color: #6b7367;
  display: block;
  margin-bottom: 2px;
}
.photo-story-note strong {
  font-size: 17px;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.note-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.memory-values {
  border-top: 1px solid #daddd1;
  border-bottom: 1px solid #daddd1;
  padding-block: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.memory-values > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.memory-values > div + div {
  border-left: 1px solid #d9dfd1;
}
.memory-values > div > .icon {
  width: 28px;
  height: 28px;
  color: #7a875f;
  stroke-width: 1.4;
}
.memory-values strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.memory-values p > span {
  display: block;
  font-size: 11px;
  color: #72796b;
  margin-top: 4px;
}
.memory-section {
  padding-block: 90px;
}
.editorial-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 39px;
}
.editorial-heading h2,
.keepsake-copy h2,
.together-section h2,
.home-faq h2,
.closing-invitation h2 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: -0.8px;
  margin-top: 15px;
}
.editorial-heading > p {
  font-size: 14px;
  color: #687266;
  line-height: 1.9;
  padding-bottom: 5px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
}
.process-grid article {
  border-top: 1px solid #bcc7b5;
  padding: 24px 2px 0;
}
.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #758365;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 22px;
}
.process-top .icon {
  width: 26px;
  height: 26px;
}
.process-grid h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 550;
  margin-bottom: 13px;
}
.process-grid p {
  font-size: 14px;
  color: #70786d;
  line-height: 1.95;
}
.process-grid article > a,
.process-grid article > button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 10px 0;
  margin-top: 12px;
  color: #30503b;
  font-weight: 600;
  font-size: 13px;
}
.process-grid article > a:hover,
.process-grid article > button:hover {
  color: #b2512d;
}
.process-grid article > a .icon,
.process-grid article > button .icon {
  width: 18px;
}
.keepsake-section {
  background: #eeeee1;
}
.keepsake-inner {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 72px;
  padding-block: 72px;
}
.keepsake-photo {
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.keepsake-photo img {
  display: block;
  width: 100%;
  height: 490px;
  object-fit: cover;
  border-radius: 14px;
}
.keepsake-photo figcaption {
  font-size: 10px;
  color: #717764;
  padding-top: 13px;
  text-align: center;
}
.keepsake-copy h2 {
  margin-bottom: 22px;
  font-size: 34px;
}
.section-lead {
  font-size: 14px;
  color: #66715f;
  line-height: 1.95;
}
.keepsake-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 25px;
}
.keepsake-list li {
  display: flex;
  gap: 17px;
  margin-bottom: 19px;
}
.keepsake-list li > span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #dce3d2;
  color: #56704d;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  margin-top: 2px;
}
.keepsake-list strong {
  font-size: 14px;
  font-weight: 600;
}
.keepsake-list p {
  margin-top: 4px;
  font-size: 12px;
  color: #747b6b;
}
.prompt-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 26px;
}
.memory-story-card {
  border-radius: 14px;
  overflow: hidden;
  background: #f1eee3;
  display: flex;
  flex-direction: column;
}
.memory-story-card img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform 0.55s;
}
.memory-story-card:hover img {
  transform: scale(1.025);
}
.memory-story-card > div {
  padding: 29px 32px 26px;
  position: relative;
  background: #f1eee3;
  flex: 1;
}
.story-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #6b745e;
}
.memory-story-card h3 {
  font-size: 25px;
  font-weight: 550;
  margin: 10px 0 9px;
}
.memory-story-card p {
  color: #77806f;
  font-size: 13px;
}
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-top: 23px;
}
.card-link .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}
.memory-story-card:hover .card-link .icon,
.prompt-tile:hover .card-link .icon {
  transform: translateX(5px);
}
.prompt-stack {
  display: grid;
  gap: 24px;
}
.prompt-tile {
  border: 0;
  width: 100%;
  border-radius: 14px;
  padding: 30px 34px 24px;
  text-align: left;
  color: #324936;
  transition:
    background 0.2s,
    transform 0.2s;
}
.prompt-tile.peach {
  background: #f0dfcf;
}
.prompt-tile.pale {
  background: #e5eadb;
}
.prompt-tile:hover {
  transform: translateY(-3px);
}
.prompt-tile > span:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  color: #78806b;
}
.prompt-tile h3 {
  font-size: 25px;
  line-height: 1.6;
  font-weight: 500;
  margin: 15px 0 10px;
}
.prompt-tile p {
  font-size: 12px;
  color: #747c68;
}
.together-section {
  background: #214536;
  color: #faf5e8;
}
.together-inner {
  padding-block: 69px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 85px;
  align-items: center;
}
.together-section .kicker {
  color: #c3cfaf;
  font-size: 11px;
  letter-spacing: 1px;
}
.together-section h2 {
  color: #fbf5e7;
  font-size: 43px;
  margin: 17px 0 18px;
}
.together-inner > div > p:not(.kicker) {
  color: #c0cfbf;
  font-size: 14px;
  line-height: 2;
}
.together-inner .button {
  margin-top: 26px;
  font-size: 13px;
}
.device-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.device-pair article {
  border-top: 1px solid #627762;
  padding-top: 23px;
}
.device-pair article > .icon {
  width: 31px;
  height: 31px;
  display: block;
  margin-bottom: 26px;
  color: #d7dfbb;
  stroke-width: 1.3;
}
.device-pair article > span {
  font-size: 11px;
  color: #b1c2a7;
}
.device-pair h3 {
  font-size: 21px;
  font-weight: 450;
  line-height: 1.65;
  margin-block: 11px;
}
.device-pair article p {
  font-size: 12px;
  color: #bccbb7;
  line-height: 1.9;
}
.device-pair .sync-note {
  grid-column: 1 / -1;
  color: #b9c8b3;
  font-size: 10px;
  margin-top: 10px;
}
.home-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}
.home-faq h2 {
  margin-bottom: 24px;
}
.home-faq-list details {
  border-bottom: 1px solid #daddd0;
}
.home-faq-list details:first-child {
  border-top: 1px solid #daddd0;
}
.home-faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
}
.home-faq-list summary::-webkit-details-marker {
  display: none;
}
.home-faq-list summary::after {
  content: "+";
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
  color: #7b846d;
}
.home-faq-list details[open] summary::after {
  content: "−";
}
.home-faq-list details p {
  font-size: 13px;
  line-height: 1.95;
  color: #65715f;
  padding-bottom: 23px;
  max-width: 95%;
}
.closing-invitation {
  text-align: center;
  border-top: 1px solid #daddd0;
  padding-block: 65px 82px;
}
.closing-invitation h2 {
  font-size: 33px;
  margin-bottom: 17px;
}
.closing-invitation > p:not(.kicker) {
  font-size: 14px;
  color: #6e7867;
}
.closing-invitation .button {
  margin-top: 29px;
}
.footer {
  padding: 44px 64px;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #eeeee4;
  border-top: 0;
  color: #5e6d5b;
}
.footer-brand .brand > span {
  font-size: 20px;
}
.footer-brand .brand img {
  width: 30px;
  height: 30px;
}
.footer-brand p {
  font-size: 11px;
  margin-top: 13px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  font-size: 12px;
}
.footer nav a:hover {
  color: #b25330;
}
.footer-caption {
  text-align: right;
}
.footer-caption > span {
  font-size: 14px;
}
.footer-caption small {
  display: block;
  font-size: 9px;
  margin-top: 9px;
  letter-spacing: 1px;
}

.footer-legal {
  flex: 0 0 100%;
  width: 100%;
  border-top: 1px solid #d8ddcf;
  padding-top: 16px;
  font-size: 12px;
  line-height: 1.8;
}
.footer-legal a {
  display: inline-block;
  padding-block: 4px;
  color: #53624f;
  text-underline-offset: 4px;
}
.footer-legal a:hover {
  color: #9d4325;
  text-decoration: underline;
}

/* The existing workspace keeps its routes and interactions. */
.sidebar {
  background: #f0f1e8;
  border-color: #dce1d5;
}
.sidebar-title {
  color: #738067;
  letter-spacing: 1.5px;
}
.sidebar .nav-item {
  border-radius: 8px;
  min-height: 46px;
}
.sidebar .nav-item.active {
  background: #dfe8d7;
  color: #254d39;
  font-weight: 600;
}
.sidebar-bottom {
  color: #78816b;
}
.workspace-main {
  padding-top: 44px;
}
.page-heading h1 {
  font-family: var(--display);
  font-weight: 550;
  font-size: 33px;
  letter-spacing: -0.8px;
}
.page-heading p {
  font-size: 14px;
  color: #76806e;
}
.eyebrow {
  font-size: 11px;
  color: #758368;
  letter-spacing: 1.3px;
}
.library-welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 16px;
  background: #f0f0e5;
  min-height: 390px;
}
.library-welcome > div {
  padding: 45px 36px;
}
.library-welcome h2 {
  font-family: var(--display);
  font-weight: 550;
  font-size: 31px;
  line-height: 1.6;
  margin: 18px 0;
}
.library-welcome > div > p:not(.kicker) {
  color: #78806d;
  font-size: 13px;
  line-height: 2;
}
.library-welcome .button {
  display: flex;
  margin-top: 25px;
  width: fit-content;
  font-size: 13px;
}
.library-welcome .underlined-link {
  margin-top: 10px;
  font-size: 12px;
}
.library-welcome figure {
  margin: 0;
  position: relative;
  min-height: 300px;
}
.library-welcome figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.library-welcome figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 5px #000;
}
.library-overview {
  border-radius: 14px;
  background: #e9eddf;
  border-color: #d8dfcc;
}
.library-toolbar {
  margin-top: 30px;
}
.story-list {
  background: #fffdf7;
  border-radius: 12px;
  padding-inline: 20px;
}
.story-row {
  border-color: #e2e5d9;
}
.story-summary h3 {
  font-family: var(--display);
  font-weight: 550;
}
.story-thumb {
  border-radius: 9px;
  background: #e7ecdf;
  color: #6b7e5e;
}
.status-tag {
  border-radius: 30px;
}
.status-tag.confirmed {
  color: #3b643d;
  background: #e0ecd9;
}
.tabs button {
  border-radius: 20px;
}
.question-heading {
  background: #244a38;
  border-radius: 15px;
  padding: 33px 36px;
  color: #f8f3e6;
  margin-bottom: 28px;
}
.question-heading .eyebrow,
.question-heading p {
  color: #c4d0b8;
}
.question-heading h1 {
  color: #faf5e9;
  font-size: 35px;
  margin-top: 13px;
}
.question-heading .small-seal {
  border-color: #91a77c;
  color: #dae3c7;
}
.theme-tabs {
  gap: 8px;
  flex-wrap: wrap;
}
.theme-tabs button {
  border-radius: 22px;
  font-size: 13px;
  padding: 10px 16px;
  min-height: 42px;
}
.theme-tabs button.active {
  background: #244e38;
  color: #faf8ee;
}
.question-card {
  border: 0;
  border-radius: 12px;
  padding: 28px;
  background: #efede2;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.question-card:nth-child(3n + 2) {
  background: #e9ecde;
}
.question-card:nth-child(3n) {
  background: #f0e2d6;
}
.question-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px #3c472908;
}
.question-card h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.7;
}
.question-card p {
  font-size: 13px;
}
.question-category {
  color: #66765c;
  background: transparent;
  padding-left: 0;
}
.question-num {
  color: #899276;
}
.question-card .text-link {
  font-size: 13px;
}
.writing-surface,
.tool-section,
.book-settings,
.backup-card {
  border-radius: 12px;
}
.writing-surface {
  background: #fffefa;
}
.story-title-input {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 550;
}
.tool-section {
  background: #f0f1e7;
}
.tool-heading h2 {
  font-family: var(--display);
  font-weight: 550;
  font-size: 17px;
}
.tool-section .capability-note {
  border-radius: 7px;
}
.photo-upload {
  border-radius: 9px;
}
.book-stage {
  border-radius: 14px;
  background: #e7ebdb;
}
.book-cover.navy {
  background: #284e3b;
}
.cover-option.navy {
  background: #284e3b;
}
.book-cover-content h2 {
  line-height: 1.6;
}
.empty-state {
  border-radius: 15px;
  background: #f0f1e6;
}
.about-intro {
  padding-top: 72px;
  padding-bottom: 64px;
  background: #e9ecde;
}
.about-intro h1 {
  font-family: var(--display);
  font-weight: 550;
  line-height: 1.6;
  color: #264736;
}
.about-intro .button {
  background: #bc522c;
}
.faq-section h2 {
  font-family: var(--display);
  font-weight: 500;
}
.sample-story {
  max-width: 840px;
  padding-top: 10px;
}
.sample-story h1 {
  font-family: var(--display);
  font-size: 41px;
  font-weight: 550;
  line-height: 1.5;
}
.sample-story > p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2.2;
  color: #445143;
}
.sample-photo {
  margin: 33px 0 27px;
}
.sample-photo img {
  width: 100%;
  display: block;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}
.sample-photo figcaption {
  font-size: 11px;
  color: #7c8473;
  text-align: right;
  margin-top: 7px;
}
.sample-story blockquote {
  background: #eaeddf;
  border-color: #809065;
  border-radius: 0 10px 10px 0;
  padding: 25px;
  color: #465b3e;
}
.sample-story .sample-disclaimer {
  font: 12px/1.9 var(--sans);
}
dialog {
  border-radius: 18px;
  background: #fffdf6;
}
dialog h2 {
  font-family: var(--display);
  font-weight: 550;
}
.field input,
.field textarea {
  border-radius: 9px;
  background: #fffefa;
  min-height: 47px;
}
#toast {
  border-radius: 12px;
  background: #264735;
}
.mobile-nav {
  background: #fffdf7f5;
  backdrop-filter: blur(14px);
  border-top-color: #dce1d2;
}
.mobile-nav .nav-item.active {
  color: #a74825;
}

@media (min-width: 1600px) {
  .memory-hero {
    padding-block: 70px 75px;
  }
  .memory-hero-visual {
    height: 530px;
  }
}
@media (max-width: 1180px) {
  .page-width {
    width: calc(100% - 80px);
  }
  .header-inner {
    padding-inline: 40px;
  }
  .top-nav {
    gap: 24px;
  }
  .memory-hero {
    gap: 30px;
    padding-block: 45px 50px;
  }
  .memory-hero h1 {
    font-size: 46px;
  }
  .memory-hero-visual {
    height: 445px;
  }
  .hero-lead {
    font-size: 14px;
  }
  .memory-hero-actions {
    gap: 10px 17px;
    margin-top: 25px;
  }
  .photo-story-note {
    left: -18px;
    right: 18px;
    padding: 17px;
  }
  .photo-story-note strong {
    font-size: 15px;
  }
  .memory-values {
    gap: 10px;
  }
  .memory-values > div {
    gap: 12px;
  }
  .memory-values p > span {
    font-size: 10px;
  }
  .memory-values strong {
    font-size: 13px;
  }
  .memory-section {
    padding-block: 70px;
  }
  .process-grid {
    gap: 26px;
  }
  .process-grid h3 {
    font-size: 19px;
  }
  .keepsake-inner {
    gap: 42px;
  }
  .keepsake-copy h2 {
    font-size: 28px;
  }
  .keepsake-photo img {
    height: 465px;
  }
  .together-inner {
    gap: 45px;
  }
  .device-pair {
    gap: 20px;
  }
  .device-pair h3 {
    font-size: 18px;
  }
  .footer {
    padding-inline: 40px;
  }
  .footer-caption {
    display: none;
  }
}
@media (max-width: 900px) {
  .page-width {
    width: calc(100% - 48px);
  }
  .header {
    height: 75px;
  }
  .header-inner {
    padding-inline: 24px;
  }
  .brand > span {
    font-size: 21px;
  }
  .memory-hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .memory-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .memory-hero .kicker {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .memory-hero .tiny-line {
    width: 15px;
    margin-right: 4px;
  }
  .hero-lead {
    font-size: 13px;
    line-height: 1.9;
  }
  .memory-hero-actions .button {
    font-size: 12px;
    padding-inline: 18px;
  }
  .hero-footnote {
    font-size: 10px;
  }
  .memory-hero-visual {
    height: 420px;
  }
  .family-image {
    border-radius: 16px 16px 16px 55px;
  }
  .photo-story-note {
    gap: 10px;
    padding: 14px;
    left: -12px;
    right: 12px;
    bottom: 20px;
  }
  .note-icon {
    width: 35px;
    height: 35px;
  }
  .photo-story-note small {
    font-size: 9px;
  }
  .photo-story-note strong {
    font-size: 13px;
    letter-spacing: 0;
  }
  .note-arrow {
    display: none;
  }
  .memory-values {
    padding-block: 23px;
  }
  .memory-values > div {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .memory-values > div > .icon {
    width: 24px;
    height: 24px;
  }
  .memory-values strong {
    font-size: 12px;
  }
  .memory-values p > span {
    display: none;
  }
  .editorial-heading h2,
  .home-faq h2 {
    font-size: 29px;
  }
  .editorial-heading > p {
    font-size: 12px;
  }
  .process-grid {
    gap: 23px;
  }
  .process-grid h3 {
    font-size: 17px;
  }
  .process-grid p {
    font-size: 12px;
  }
  .process-grid article > a,
  .process-grid article > button {
    font-size: 11px;
    gap: 5px;
  }
  .process-top {
    font-size: 10px;
  }
  .keepsake-inner {
    padding-block: 50px;
    gap: 30px;
  }
  .keepsake-copy h2 {
    font-size: 25px;
  }
  .keepsake-copy .section-lead {
    font-size: 12px;
  }
  .keepsake-photo img {
    height: 460px;
  }
  .keepsake-photo figcaption {
    line-height: 1.8;
  }
  .keepsake-list li {
    gap: 10px;
  }
  .keepsake-list p {
    font-size: 11px;
  }
  .keepsake-list strong {
    font-size: 13px;
  }
  .prompt-grid {
    gap: 20px;
  }
  .prompt-tile {
    padding: 24px;
  }
  .prompt-tile h3 {
    font-size: 22px;
  }
  .memory-story-card > div {
    padding: 25px;
  }
  .memory-story-card h3 {
    font-size: 22px;
  }
  .memory-story-card img {
    height: 280px;
  }
  .together-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .together-inner > div:first-child {
    text-align: center;
  }
  .together-section h2 {
    font-size: 36px;
  }
  .together-section h2 br {
    display: none;
  }
  .device-pair article {
    padding: 24px;
    background: #2a513e;
    border-color: #62765d;
  }
  .device-pair .sync-note {
    text-align: center;
  }
  .home-faq {
    gap: 40px;
  }
  .home-faq-list summary {
    font-size: 14px;
  }
  .closing-invitation h2 {
    font-size: 28px;
  }
  .footer {
    padding: 35px 24px 95px;
  }
  .footer nav {
    gap: 15px;
    font-size: 11px;
  }
  .workspace-main {
    padding-top: 28px;
  }
  .library-welcome > div {
    padding: 30px;
  }
  .library-welcome h2 {
    font-size: 26px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .page-width {
    width: calc(100% - 40px);
  }
  .header {
    height: 68px;
  }
  .header-inner {
    padding-inline: 20px;
    gap: 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand > span {
    font-size: 19px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 6.5px;
    margin-top: 5px;
    letter-spacing: 1.8px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .header-cta {
    font-size: 11px;
    padding: 8px 13px;
    min-height: 38px;
    gap: 7px;
  }
  .header-cta .icon {
    width: 15px;
    height: 15px;
  }
  .local-notice {
    padding: 6px 15px;
    gap: 7px;
    min-height: 30px;
    font-size: 9px;
  }
  .local-notice .notice-detail {
    display: none;
  }
  .local-notice a {
    margin-left: 0;
  }
  .mobile-only {
    display: block;
  }
  .memory-hero {
    display: flex;
    flex-direction: column;
    gap: 29px;
    padding-block: 34px 34px;
  }
  .memory-hero-copy {
    width: 100%;
    padding: 0;
  }
  .memory-hero .kicker {
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .memory-hero h1 {
    font-size: clamp(32px, 8.7vw, 45px);
    line-height: 1.42;
    margin: 17px 0 18px;
    font-weight: 650;
    letter-spacing: -0.9px;
  }
  .hero-lead {
    font-size: 13px;
    line-height: 1.95;
    max-width: 410px;
  }
  .memory-hero-actions {
    gap: 8px 17px;
    margin-top: 23px;
  }
  .memory-hero-actions .button {
    min-height: 49px;
    font-size: 13px;
    padding: 11px 20px;
  }
  .memory-hero-actions .underlined-link {
    font-size: 12px;
  }
  .hero-footnote {
    font-size: 10px;
    margin-top: 14px;
  }
  .memory-hero-visual {
    height: auto;
    aspect-ratio: 1.16;
    width: 100%;
  }
  .family-image {
    border-radius: 14px 14px 14px 48px;
  }
  .photo-story-note {
    bottom: 17px;
    left: 14px;
    right: 14px;
    padding: 13px 15px;
    gap: 12px;
    border-radius: 9px;
  }
  .photo-story-note strong {
    font-size: 14px;
  }
  .photo-story-note small {
    font-size: 9px;
  }
  .note-icon {
    width: 36px;
    height: 36px;
  }
  .note-arrow {
    display: grid;
    width: 25px;
  }
  .note-arrow .icon {
    width: 18px;
  }
  .image-disclosure {
    font-size: 8px;
    top: 10px;
    right: 10px;
  }
  .memory-values {
    gap: 0;
    padding-block: 21px;
  }
  .memory-values > div {
    gap: 9px;
    padding-inline: 6px;
  }
  .memory-values strong {
    font-size: 10px;
    font-weight: 550;
  }
  .memory-values > div > .icon {
    width: 23px;
    height: 23px;
  }
  .memory-section {
    padding-block: 52px;
  }
  .editorial-heading {
    display: block;
    margin-bottom: 28px;
  }
  .kicker {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .editorial-heading h2,
  .home-faq h2 {
    font-size: 27px;
    line-height: 1.6;
    margin-top: 11px;
    letter-spacing: -0.7px;
  }
  .editorial-heading > p {
    margin-top: 18px;
    font-size: 12px;
  }
  .editorial-heading > .underlined-link {
    margin-top: 13px;
    font-size: 12px;
  }
  .process-grid {
    display: block;
  }
  .process-grid article {
    position: relative;
    margin-bottom: 26px;
    padding: 22px 0 0;
  }
  .process-grid article:last-child {
    margin-bottom: 0;
  }
  .process-top {
    margin-bottom: 14px;
    font-size: 10px;
  }
  .process-top .icon {
    width: 24px;
    height: 24px;
  }
  .process-grid h3 {
    font-size: 21px;
    margin-bottom: 10px;
  }
  .process-grid p {
    font-size: 13px;
  }
  .process-grid p br {
    display: none;
  }
  .process-grid article > a,
  .process-grid article > button {
    font-size: 12px;
    margin-top: 8px;
    min-height: 44px;
  }
  .keepsake-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-block: 40px;
  }
  .keepsake-photo {
    width: 100%;
  }
  .keepsake-photo img {
    height: auto;
    aspect-ratio: 1.15;
    border-radius: 11px;
  }
  .keepsake-photo figcaption {
    font-size: 8px;
    padding-top: 9px;
  }
  .keepsake-copy {
    width: 100%;
  }
  .keepsake-copy h2 {
    font-size: 28px;
    margin: 12px 0 19px;
  }
  .keepsake-copy .section-lead {
    font-size: 13px;
  }
  .keepsake-list {
    margin-block: 24px;
  }
  .keepsake-list li {
    margin-bottom: 20px;
    gap: 13px;
  }
  .keepsake-list strong {
    font-size: 14px;
  }
  .keepsake-list p {
    font-size: 12px;
    line-height: 1.8;
  }
  .keepsake-copy .button {
    font-size: 13px;
  }
  .prompt-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .memory-story-card img {
    height: 230px;
  }
  .memory-story-card > div {
    padding: 24px;
  }
  .memory-story-card h3 {
    font-size: 23px;
  }
  .memory-story-card p {
    font-size: 12px;
    line-height: 1.85;
  }
  .prompt-stack {
    gap: 16px;
  }
  .prompt-tile {
    padding: 23px 25px;
    min-height: 230px;
  }
  .prompt-tile h3 {
    font-size: 25px;
    margin-top: 14px;
  }
  .prompt-tile .card-link {
    margin-top: 17px;
  }
  .together-inner {
    padding-block: 45px;
    gap: 30px;
  }
  .together-section .kicker {
    font-size: 9px;
    letter-spacing: 0.2px;
  }
  .together-section h2 {
    font-size: 32px;
  }
  .together-section h2 br {
    display: block;
  }
  .together-inner > div > p:not(.kicker) {
    font-size: 12px;
  }
  .device-pair {
    gap: 13px;
  }
  .device-pair article {
    padding: 21px 15px;
    border-radius: 4px;
  }
  .device-pair article > .icon {
    width: 27px;
    height: 27px;
    margin-bottom: 20px;
  }
  .device-pair h3 {
    font-size: 16px;
    line-height: 1.65;
  }
  .device-pair article p {
    font-size: 11px;
  }
  .device-pair .sync-note {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 5px;
  }
  .home-faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-faq h2 {
    margin-bottom: 12px;
  }
  .home-faq h2 br {
    display: none;
  }
  .home-faq .underlined-link {
    font-size: 12px;
  }
  .home-faq-list summary {
    padding-block: 22px;
    font-size: 14px;
  }
  .home-faq-list details p {
    font-size: 12px;
  }
  .closing-invitation {
    padding-block: 44px 50px;
  }
  .closing-invitation h2 {
    font-size: 25px;
    margin-block: 14px;
  }
  .closing-invitation > p:not(.kicker) {
    font-size: 12px;
  }
  .closing-invitation .button {
    font-size: 13px;
    margin-top: 24px;
  }
  .footer {
    padding: 32px 20px 110px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .footer nav {
    gap: 23px;
    font-size: 11px;
  }
  .footer-brand .brand > span {
    font-size: 20px;
  }
  .footer-brand p {
    font-size: 11px;
  }
  .footer-caption {
    display: none;
  }
  .mobile-nav {
    padding-bottom: max(5px, env(safe-area-inset-bottom));
    height: calc(63px + env(safe-area-inset-bottom));
  }
  .mobile-nav .nav-item {
    padding-top: 9px;
    gap: 4px;
  }
  .mobile-nav .nav-item span {
    font-size: 10px;
  }
  .mobile-nav .nav-item .icon {
    width: 21px;
    height: 21px;
  }
  .workspace-main {
    padding: 27px 20px 35px;
  }
  .page-heading {
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .heading-actions .button {
    font-size: 11px;
    padding: 9px 15px;
    min-height: 43px;
  }
  .library-welcome {
    grid-template-columns: 1fr;
  }
  .library-welcome > div {
    padding: 27px;
  }
  .library-welcome h2 {
    font-size: 27px;
  }
  .library-welcome figure {
    min-height: 0;
  }
  .library-welcome figure img {
    height: 245px;
    display: block;
  }
  .library-welcome figcaption {
    font-size: 8px;
  }
  .question-heading {
    padding: 26px 24px;
  }
  .question-heading h1 {
    font-size: 28px;
  }
  .question-heading p {
    font-size: 12px;
    line-height: 1.9;
  }
  .question-heading .small-seal {
    display: none;
  }
  .theme-tabs {
    gap: 8px;
    margin-bottom: 22px;
  }
  .theme-tabs button {
    font-size: 12px;
    padding: 9px 13px;
    min-height: 42px;
  }
  .question-card {
    padding: 25px;
  }
  .question-card h2 {
    font-size: 22px;
  }
  .question-card .text-link {
    min-height: 44px;
  }
  .story-list {
    padding-inline: 12px;
  }
  .story-title-input {
    font-size: 23px;
  }
  .writing-surface {
    padding: 23px 19px;
  }
  .editor-top {
    gap: 14px;
  }
  .editor-top .button {
    font-size: 12px;
    padding: 10px 14px;
  }
  .sample-story {
    padding: 12px 24px 45px;
  }
  .sample-story h1 {
    font-size: 30px;
  }
  .sample-story > p {
    font-size: 16px;
    line-height: 2.1;
  }
  .sample-header {
    padding: 24px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sample-tag {
    font-size: 10px;
  }
  .sample-photo {
    margin-block: 25px;
  }
  .sample-photo img {
    height: 225px;
    border-radius: 9px;
  }
  .sample-photo figcaption {
    font-size: 9px;
  }
  .sample-story blockquote {
    font-size: 19px;
    padding: 20px;
    margin-inline: 0;
  }
  .about-intro {
    padding: 43px 23px;
  }
  .about-intro h1 {
    font-size: 29px;
  }
  .about-intro p {
    font-size: 13px;
  }
  dialog {
    padding: 30px 25px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 40px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
