:root {
  --ink: #1f3152;
  --ink-soft: #53627b;
  --paper: #fffaf0;
  --paper-deep: #f8efdd;
  --cream: #f4e7cd;
  --honey: #f7cf70;
  --honey-deep: #d9a83f;
  --peach: #f5b7a9;
  --peach-deep: #d98279;
  --lavender: #c9c1e7;
  --lavender-deep: #837ba9;
  --mint: #bcd9c7;
  --red: #bd5d61;
  --white: #fffefa;
  --shadow-soft: 0 18px 50px rgba(51, 54, 79, 0.12);
  --shadow-card: 0 12px 30px rgba(52, 48, 70, 0.12), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-height: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shell: min(1180px, calc(100vw - 40px));
  --rounded-zh: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --rounded-ja: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Source Han Sans JP", system-ui, sans-serif;
  --sans: var(--rounded-zh);
  --serif: var(--rounded-zh);
}

:root:lang(ja),
:root:lang(ja-JP) {
  --sans: var(--rounded-ja);
  --serif: var(--rounded-ja);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 9%, rgba(247, 207, 112, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 28%, rgba(201, 193, 231, 0.22) 0 2px, transparent 3px),
    linear-gradient(180deg, #fffaf0 0%, #fffdf8 38%, #faf2e5 100%);
  background-size: 32px 32px, 40px 40px, auto;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-synthesis: weight;
  line-break: strict;
  word-break: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #2f6c96;
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: rgba(247, 207, 112, 0.7);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(31, 49, 82, 0.1);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 7px 24px rgba(44, 55, 78, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: var(--shell);
  min-height: var(--header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-seal {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(31, 49, 82, 0.68);
  border-radius: 45% 55% 52% 48%;
  background: var(--white);
  box-shadow: 3px 4px 0 rgba(245, 183, 169, 0.55);
  transform: rotate(-3deg);
}

.brand-seal img {
  width: 44px;
  height: 44px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
}

.desktop-nav a {
  position: relative;
  padding: 8px 2px;
  color: #3e4d68;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 5px;
  border-radius: 50%;
  background: var(--honey);
  opacity: 0;
  transform: scaleX(0.3) rotate(-2deg);
  z-index: -1;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  opacity: 0.75;
  transform: scaleX(1) rotate(-2deg);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.locale-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(31, 49, 82, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.locale-switch button {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.locale-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.account-trigger,
.account-menu summary {
  min-height: 38px;
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 3px 0 rgba(31, 49, 82, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.account-trigger:hover,
.account-menu summary:hover {
  transform: translateY(-2px);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--peach-deep);
  font-size: 0.75rem;
}

.account-menu-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 16px;
  border: 1px solid rgba(31, 49, 82, 0.16);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.account-handle {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.account-menu-card a,
.account-menu-card button {
  width: 100%;
  display: block;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.account-menu-card a {
  margin-bottom: 5px;
  background: rgba(247, 207, 112, 0.25);
}

.account-menu-card button:hover,
.account-menu-card a:hover {
  background: var(--paper-deep);
}

.menu-trigger {
  width: 42px;
  height: 42px;
  display: none;
  place-content: center;
  gap: 4px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: var(--paper);
  cursor: pointer;
}

.menu-trigger > span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.drawer-backdrop {
  position: fixed;
  z-index: 89;
  inset: 0;
  background: rgba(22, 35, 59, 0.34);
  opacity: 0;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  padding: 24px;
  border-left: 1px solid rgba(31, 49, 82, 0.18);
  background:
    linear-gradient(rgba(31, 49, 82, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 30px;
  box-shadow: -18px 0 50px rgba(31, 49, 82, 0.18);
  overflow-y: auto;
  transform: translateX(105%);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.3);
}

.drawer-head p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
}

.icon-button,
.modal-close,
.lightbox-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(31, 49, 82, 0.24);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-drawer nav {
  display: grid;
  margin-top: 24px;
}

.mobile-drawer nav a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 17px 5px;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.21);
}

.mobile-drawer nav span {
  color: var(--peach-deep);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
}

.mobile-drawer nav strong {
  font-family: var(--serif);
  font-size: 1.18rem;
}

.drawer-note {
  margin-top: 28px;
  padding: 16px;
  border-radius: 14px;
  color: var(--ink-soft);
  background: rgba(201, 193, 231, 0.28);
  font-family: var(--serif);
  font-size: 0.86rem;
}

.drawer-auth {
  width: 100%;
  margin-top: 24px;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  gap: clamp(46px, 7vw, 96px);
  padding-block: clamp(64px, 8vw, 108px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 11%;
  left: -9%;
  width: 160px;
  aspect-ratio: 1;
  border: 2px dashed rgba(217, 168, 63, 0.37);
  border-radius: 50%;
  opacity: 0.8;
  transform: rotate(-16deg);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.paper-tag {
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 7px 15px;
  color: #46516c;
  background: rgba(201, 193, 231, 0.38);
  box-shadow: 3px 4px 0 rgba(131, 123, 169, 0.15);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.08em;
  transform: rotate(-1.5deg);
}

.paper-tag span:first-child {
  color: var(--peach-deep);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.3vw, 5rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  color: var(--red);
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 4px;
  left: -4px;
  height: 11px;
  border-radius: 60% 45% 55% 40%;
  background: rgba(247, 207, 112, 0.5);
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-lede {
  max-width: 580px;
  margin: 25px 0 30px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: var(--white);
  background: var(--ink);
  box-shadow: 5px 6px 0 var(--honey);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled) {
  transform: translate(1px, 1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.secondary-button {
  color: var(--ink);
  background: var(--white);
  box-shadow: 4px 5px 0 rgba(201, 193, 231, 0.66);
}

.compact-button {
  min-height: 42px;
  padding: 8px 17px;
  font-size: 0.83rem;
}

.hero-cta {
  min-width: 172px;
}

.hero-notes {
  display: flex;
  gap: 26px;
  margin: 38px 0 0;
}

.hero-notes div {
  min-width: 74px;
}

.hero-notes dt {
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-notes dd {
  margin: 1px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  width: min(100%, 590px);
  justify-self: end;
  padding: 18px 18px 22px;
  border: 1px solid rgba(31, 49, 82, 0.13);
  background: var(--white);
  box-shadow: 18px 20px 0 rgba(201, 193, 231, 0.27), var(--shadow-soft);
  transform: rotate(1.2deg);
}

.hero-visual::before {
  content: "M ✦ 001";
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 106px;
  padding: 7px 14px;
  border: 1px solid rgba(31, 49, 82, 0.26);
  color: var(--ink-soft);
  background: #fff7da;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transform: rotate(7deg);
}

.tape {
  position: absolute;
  z-index: 4;
  width: 88px;
  height: 28px;
  background: rgba(247, 207, 112, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  pointer-events: none;
}

.tape-one {
  top: 3px;
  left: -8px;
  transform: rotate(-34deg);
}

.tape-two {
  top: 10px;
  right: -8px;
  background: rgba(245, 183, 169, 0.55);
  transform: rotate(31deg);
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #e7dfce, #d7cee8 46%, #f2c9b8);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-photo-wrap img.is-loaded {
  opacity: 1;
}

.hero-photo-skeleton {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.46) 50%, transparent 65%),
    linear-gradient(135deg, #ece3d3, #d7cee8 48%, #f4c3b7);
  background-size: 220% 100%, auto;
  animation: none;
  opacity: 0;
}

.hero-photo-skeleton.is-hidden {
  animation: none;
  opacity: 0;
  pointer-events: none;
}

.hero-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 4px 0;
}

.hero-caption .stamp {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--peach-deep);
  border-radius: 50%;
  color: var(--peach-deep);
  font-family: var(--serif);
  font-size: 1.3rem;
  transform: rotate(-9deg);
}

.hero-caption div {
  display: grid;
}

.hero-caption small {
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.hero-caption strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hand-heart {
  color: var(--red);
  font-family: var(--serif);
  font-size: 2rem;
  transform: rotate(8deg);
}

.photo-loading-note {
  position: absolute;
  right: 20px;
  bottom: -50px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.daily-note-section {
  padding-block: clamp(28px, 5vw, 58px) 18px;
}

.daily-note-card {
  --daily-accent: var(--honey-deep);
  --daily-wash: rgba(247, 207, 112, 0.2);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 52px);
  overflow: clip;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(31, 49, 82, 0.14);
  border-radius: 28px 18px 30px 20px;
  background:
    linear-gradient(90deg, transparent 0 37px, rgba(189, 93, 97, 0.09) 37px 39px, transparent 39px),
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(31, 49, 82, 0.055) 32px 33px),
    var(--white);
  box-shadow: 10px 12px 0 var(--daily-wash), var(--shadow-card);
}

.daily-note-card::after {
  position: absolute;
  right: 24%;
  bottom: -56px;
  width: 138px;
  aspect-ratio: 1;
  border: 2px dashed color-mix(in srgb, var(--daily-accent) 45%, transparent);
  border-radius: 50%;
  content: "";
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(-12deg);
}

.daily-note-card[data-daily-theme="cloud"] {
  --daily-accent: var(--lavender-deep);
  --daily-wash: rgba(201, 193, 231, 0.25);
}

.daily-note-card[data-daily-theme="honey"] {
  --daily-accent: #b98524;
  --daily-wash: rgba(247, 207, 112, 0.27);
}

.daily-note-card[data-daily-theme="nap"] {
  --daily-accent: #6f9079;
  --daily-wash: rgba(188, 217, 199, 0.28);
}

.daily-note-card[data-daily-theme="adventure"] {
  --daily-accent: #4b6f9e;
  --daily-wash: rgba(124, 164, 207, 0.2);
}

.daily-note-card[data-daily-theme="together"] {
  --daily-accent: var(--peach-deep);
  --daily-wash: rgba(245, 183, 169, 0.25);
}

.daily-note-tape {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 44%;
  width: 92px;
  height: 26px;
  background: color-mix(in srgb, var(--daily-accent) 34%, white);
  box-shadow: 0 1px rgba(255, 255, 255, 0.82) inset;
  pointer-events: none;
  transform: translateX(-50%) rotate(-2deg);
}

.daily-note-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-left: 18px;
}

.daily-note-meta,
.daily-note-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.daily-note-meta .eyebrow {
  margin-bottom: 0;
  color: var(--daily-accent);
  letter-spacing: 0.08em;
}

.daily-note-meta time {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.daily-note-title-row {
  margin-top: 10px;
}

.daily-note-title-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.daily-note-mood {
  min-width: 92px;
  min-height: 48px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border: 2px dashed var(--daily-accent);
  border-radius: 50%;
  color: var(--daily-accent);
  background: rgba(255, 254, 250, 0.82);
  font-size: 0.8rem;
  transform: rotate(4deg);
}

.daily-note-mood > span {
  font-size: 1.05rem;
}

.daily-note-greeting {
  max-width: 34em;
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  font-weight: 700;
  line-height: 1.8;
}

.daily-note-fortune {
  max-width: 40em;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  padding: 13px 16px;
  border-left: 3px solid var(--daily-accent);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
  background: var(--daily-wash);
  font-size: 0.88rem;
  line-height: 1.7;
}

.daily-note-fortune > span:first-child {
  flex: 0 0 auto;
  color: var(--daily-accent);
}

.daily-note-photo,
.daily-note-photo-fallback {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 184px;
  align-self: center;
  padding: 12px;
  border: 1px solid rgba(31, 49, 82, 0.2);
  border-radius: 15px;
  color: var(--ink);
  background: #fffdf7;
  box-shadow: 7px 8px 0 var(--daily-wash);
}

.daily-note-photo {
  display: grid;
  grid-template-columns: minmax(112px, 0.86fr) minmax(125px, 1.14fr);
  align-items: stretch;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transform: rotate(0.8deg);
}

.daily-note-photo-frame {
  overflow: hidden;
  min-height: 158px;
  border-radius: 9px;
  background: var(--daily-wash);
}

.daily-note-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-note-photo-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.daily-note-photo-copy small {
  color: var(--daily-accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.daily-note-photo-copy strong {
  max-width: 100%;
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.daily-note-photo-copy > span:last-child {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.daily-note-photo:hover {
  transform: translate(-2px, -2px) rotate(0);
}

.daily-note-photo-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--ink-soft);
  text-align: center;
}

.daily-note-photo-fallback > span {
  color: var(--daily-accent);
  font-size: 1.6rem;
}

.daily-note-photo-fallback p {
  max-width: 20em;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.role-section,
.featured-section,
.gallery-section,
.guestbook-section {
  padding-block: clamp(72px, 10vw, 128px);
}

.role-section {
  position: relative;
  padding-top: 52px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.28;
  letter-spacing: 0;
}

.section-intro {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  line-height: 1.8;
}

.compact-heading {
  align-items: center;
}

.compact-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.all-roles-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px dashed var(--ink);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.all-roles-link:hover {
  transform: translateX(4px);
}

.role-bookmarks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.role-bookmark {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px 28px;
  overflow: hidden;
  border: 1px solid rgba(31, 49, 82, 0.15);
  border-radius: 8px 8px 20px 20px;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.role-bookmark::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -32px;
  width: 110px;
  height: 110px;
  border: 2px dashed rgba(31, 49, 82, 0.2);
  border-radius: 50%;
}

.role-bookmark::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 44px;
  height: 11px;
  border-block: 2px solid rgba(31, 49, 82, 0.22);
  transform: rotate(-5deg);
}

.role-bookmark:hover,
.role-bookmark:focus-visible {
  transform: translateY(-7px) rotate(-1deg);
}

.role-makino {
  background: #f8d6ce;
}

.role-kureiru {
  background: #f9dfa2;
}

.role-ranmaru {
  background: #d9d3ed;
}

.role-matome {
  background: #cee2d5;
}

.bookmark-index {
  color: rgba(31, 49, 82, 0.55);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-style: italic;
}

.bookmark-name {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 800;
}

.bookmark-note {
  max-width: 160px;
  margin-top: 5px;
  color: rgba(31, 49, 82, 0.74);
  font-family: var(--serif);
  font-size: 0.8rem;
}

.role-bookmark strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.role-bookmark strong small {
  font-size: 0.75rem;
  font-weight: 600;
}

.featured-section {
  position: relative;
}

.featured-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 0 3%;
  background:
    linear-gradient(90deg, transparent 0 3%, rgba(201, 193, 231, 0.15) 3% 97%, transparent 97%),
    linear-gradient(rgba(31, 49, 82, 0.045) 1px, transparent 1px);
  background-size: auto, 100% 31px;
}

.local-favorite-note {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px dashed rgba(189, 93, 97, 0.48);
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 254, 250, 0.82);
  font-size: 0.78rem;
}

.local-favorite-note > span:first-child {
  font-size: 1.35rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 24px 18px;
}

.photo-card {
  position: relative;
  min-width: 0;
  overflow: visible;
}

.featured-card {
  padding: 10px 10px 16px;
  border: 1px solid rgba(31, 49, 82, 0.12);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.featured-card:nth-child(4n + 1) {
  transform: rotate(-1.1deg);
}

.featured-card:nth-child(4n + 2) {
  margin-top: 24px;
  transform: rotate(0.7deg);
}

.featured-card:nth-child(4n + 3) {
  transform: rotate(-0.4deg);
}

.featured-card:nth-child(4n + 4) {
  margin-top: 15px;
  transform: rotate(1deg);
}

.featured-card:hover {
  z-index: 3;
  transform: translateY(-6px) rotate(0);
}

.photo-open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background: var(--cream);
}

.gallery-card .photo-frame {
  border-radius: 15px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cream);
  transform: scale(1.001);
}

.photo-open:hover .photo-frame img,
.photo-open:focus-visible .photo-frame img {
  transform: scale(1.035);
}

.photo-category-label {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 64px);
  padding: 4px 9px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 3px 10px rgba(31, 49, 82, 0.12);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.photo-card-copy {
  display: grid;
  gap: 2px;
  padding: 12px 3px 0;
}

.photo-card-copy h3 {
  margin: 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-card-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-button {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(31, 49, 82, 0.15);
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 4px 14px rgba(31, 49, 82, 0.13);
  font-family: var(--serif);
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.gallery-card .favorite-button {
  top: 10px;
  right: 10px;
}

.favorite-button:hover {
  transform: scale(1.08) rotate(-7deg);
}

.favorite-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--red);
}

.photo-placeholder {
  min-height: 330px;
  border: 1px solid rgba(31, 49, 82, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%),
    linear-gradient(135deg, #f3e9d5, #e2dcef);
  background-size: 220% 100%, auto;
  animation: paper-shimmer 1.8s infinite;
}

.gallery-section {
  width: min(1280px, calc(100vw - 24px));
}

.gallery-paper {
  position: relative;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(31, 49, 82, 0.12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(31, 49, 82, 0.035) 1px, transparent 1px),
    var(--white);
  background-size: 100% 32px;
  box-shadow: 0 28px 80px rgba(41, 49, 70, 0.12);
}

.gallery-paper::before,
.gallery-paper::after {
  content: "";
  position: absolute;
  width: 98px;
  height: 28px;
  background: rgba(245, 183, 169, 0.48);
  pointer-events: none;
}

.gallery-paper::before {
  top: -8px;
  left: 8%;
  transform: rotate(-3deg);
}

.gallery-paper::after {
  right: 7%;
  bottom: -8px;
  background: rgba(247, 207, 112, 0.5);
  transform: rotate(4deg);
}

.gallery-heading {
  align-items: center;
}

.gallery-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.27);
}

.filter-chip {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(31, 49, 82, 0.19);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.76);
  font-size: 0.77rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover {
  transform: translateY(-2px);
}

.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
  box-shadow: 3px 4px 0 var(--honey);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

.gallery-card {
  padding: 0;
}

.gallery-card .photo-card-copy {
  padding-inline: 5px;
}

.gallery-empty {
  padding: 68px 20px;
  text-align: center;
}

.gallery-empty > span {
  display: block;
  color: var(--lavender-deep);
  font-size: 3rem;
}

.gallery-empty h3 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.gallery-empty p {
  margin: 0;
  color: var(--ink-soft);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 42px;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(24px, 4vw, 50px);
}

.comment-total {
  min-width: max-content;
  padding: 7px 13px;
  border: 1px dashed rgba(31, 49, 82, 0.33);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.guestbook-profile {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 20px 20px 24px;
  border: 1px solid rgba(31, 49, 82, 0.12);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transform: rotate(-0.8deg);
}

.guestbook-profile img {
  width: 100%;
  aspect-ratio: 1700 / 1882;
  object-fit: cover;
  object-position: 50% 44%;
  background: var(--peach);
}

.profile-sticker {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: -13px;
  padding: 5px 11px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--red);
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(7deg);
}

.guestbook-profile h3 {
  margin: 18px 0 6px;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.guestbook-profile p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.api-notice {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #7a4447;
  background: rgba(245, 183, 169, 0.25);
  font-size: 0.75rem;
}

.guestbook-paper {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(31, 49, 82, 0.12);
  border-radius: 4px 22px 22px 4px;
  background:
    linear-gradient(90deg, transparent 0 39px, rgba(189, 93, 97, 0.16) 39px 40px, transparent 40px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(31, 49, 82, 0.07) 33px 34px),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.comment-form {
  padding: 0 0 28px 24px;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.27);
}

.comment-form label,
.auth-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.comment-form textarea,
.auth-form input {
  width: 100%;
  border: 1.5px solid rgba(31, 49, 82, 0.25);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.9);
}

.comment-form textarea {
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
}

.comment-form textarea:disabled {
  color: var(--ink-soft);
  background: rgba(235, 229, 218, 0.65);
  cursor: not-allowed;
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
}

.comment-form-foot > span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.form-message {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

.form-message.is-success {
  color: #397459;
}

.comment-list {
  display: grid;
  gap: 0;
  padding-left: 24px;
}

.comment-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  padding: 24px 0;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.2);
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 49, 82, 0.18);
  border-radius: 44% 56% 52% 48%;
  color: var(--ink);
  background: var(--honey);
  font-family: var(--serif);
  font-weight: 800;
  transform: rotate(-3deg);
}

.comment-item:nth-child(3n + 2) .comment-avatar {
  background: var(--peach);
  transform: rotate(3deg);
}

.comment-item:nth-child(3n) .comment-avatar {
  background: var(--lavender);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.comment-meta strong {
  font-family: var(--serif);
  font-size: 0.93rem;
}

.comment-meta time {
  color: var(--ink-soft);
  font-size: 0.75rem;
  white-space: nowrap;
}

.comment-body p {
  margin: 5px 0 0;
  color: #394966;
  font-family: var(--serif);
  font-size: 0.91rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.comment-skeleton {
  height: 98px;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.2);
  background: linear-gradient(105deg, transparent 35%, rgba(201, 193, 231, 0.22) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: paper-shimmer 1.8s infinite;
}

.empty-comments {
  padding: 50px 10px;
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--serif);
}

.site-footer {
  padding-block: 48px max(42px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(31, 49, 82, 0.13);
  background: var(--ink);
  color: rgba(255, 254, 250, 0.83);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--serif);
}

.footer-brand img {
  border-radius: 50%;
  background: var(--paper);
}

.footer-inner p {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.78rem;
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  opacity: 0.65;
}

.modal {
  width: min(620px, calc(100vw - 28px));
  max-height: min(90svh, 760px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow-soft);
}

.modal::backdrop {
  background: rgba(22, 35, 59, 0.58);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  padding: clamp(26px, 5vw, 48px);
  background:
    linear-gradient(rgba(31, 49, 82, 0.038) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 31px;
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
}

.auth-dialog h2 {
  max-width: calc(100% - 48px);
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.35;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid rgba(31, 49, 82, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
}

.auth-form {
  display: grid;
}

.auth-form label:not(:first-child) {
  margin-top: 15px;
}

.auth-form input {
  height: 46px;
  padding: 8px 12px;
}

.auth-form small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.auth-form .primary-button {
  width: 100%;
  margin-top: 24px;
}

.honey-field {
  position: fixed;
  top: -10000px;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-message {
  text-align: center;
}

.lightbox {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  border-radius: 20px;
}

.lightbox-card {
  position: relative;
  background: var(--white);
}

.lightbox-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  box-shadow: 0 5px 20px rgba(31, 49, 82, 0.16);
}

.lightbox-media {
  position: relative;
  min-height: min(67svh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.035) 75%),
    #182842;
  background-size: 24px 24px;
}

.lightbox-media img {
  max-width: 100%;
  max-height: min(67svh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--white);
  background: rgba(31, 49, 82, 0.64);
  font-size: 1.2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px;
  padding: 23px clamp(20px, 4vw, 42px) 28px;
}

.lightbox-kicker {
  margin: 0 0 3px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lightbox-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.lightbox-copy > div > p:last-child {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.favorite-button-wide {
  position: static;
  min-width: max-content;
  height: 40px;
  display: inline-flex;
  gap: 7px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
}

.favorite-button-wide > span:first-child {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.pet-wake {
  position: fixed;
  z-index: 67;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--honey);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.pet-wake img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
}

.pet-wake:hover {
  transform: translateY(-3px);
}

.desk-pet {
  position: fixed;
  z-index: 66;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 252px;
  user-select: none;
  filter: drop-shadow(0 16px 22px rgba(31, 49, 82, 0.2));
  touch-action: none;
  will-change: transform;
}

.desk-pet.is-dragging {
  filter: drop-shadow(0 24px 34px rgba(31, 49, 82, 0.28));
  transition: none !important;
}

.pet-speech {
  position: relative;
  min-height: 45px;
  margin: 0 8px 10px;
  padding: 10px 13px;
  border: 1px solid rgba(31, 49, 82, 0.24);
  border-radius: 16px 16px 5px 16px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.94);
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 1.55;
  box-shadow: 0 8px 18px rgba(31, 49, 82, 0.11);
  opacity: 1;
}

.pet-speech.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.pet-panel {
  overflow: hidden;
  border: 1.5px solid rgba(31, 49, 82, 0.45);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 4px 5px 0 rgba(201, 193, 231, 0.76);
  backdrop-filter: blur(10px);
}

.pet-panel-head {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-bottom: 1px dashed rgba(31, 49, 82, 0.22);
  cursor: grab;
  touch-action: none;
}

.pet-panel-head:active {
  cursor: grabbing;
}

.pet-panel-head strong {
  font-size: 0.75rem;
}

.pet-grip {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.pet-panel-head button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(201, 193, 231, 0.34);
  line-height: 1;
  cursor: pointer;
}

.pet-avatar {
  width: 100%;
  height: 150px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 50% 75%, rgba(247, 207, 112, 0.38), transparent 45%),
    transparent;
  cursor: pointer;
}

.pet-avatar img {
  width: 150px;
  height: 162px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.pet-avatar:hover img {
  transform: scale(1.035);
}

.pet-vitals {
  display: grid;
  gap: 5px;
  padding: 7px 12px 9px;
}

.pet-vitals > div {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
}

.pet-vitals i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 49, 82, 0.12);
}

.pet-vitals b {
  width: 50%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--honey-deep);
}

.pet-vitals > div:nth-child(2) b {
  background: var(--peach-deep);
}

.pet-vitals small {
  color: var(--ink-soft);
  text-align: right;
  font-size: 0.75rem;
}

.pet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed rgba(31, 49, 82, 0.2);
}

.pet-actions button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 7px 2px 8px;
  border: 0;
  border-right: 1px solid rgba(31, 49, 82, 0.1);
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
}

.pet-actions button:last-child {
  border-right: 0;
}

.pet-actions button > span:first-child {
  font-size: 0.95rem;
}

.pet-actions button:hover {
  background: rgba(247, 207, 112, 0.2);
  transform: translateY(-2px);
}

.desk-pet.is-reacting .pet-panel {
  animation: pet-hop 440ms ease-out;
}

.noscript-note {
  position: fixed;
  z-index: 180;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--honey);
  text-align: center;
  font-size: 0.8rem;
}

.hero-notes dd,
.bookmark-index,
[data-category-count],
.comment-total,
.comment-meta time,
.lightbox-tools,
.pet-vitals small {
  font-variant-numeric: tabular-nums;
}

@keyframes paper-shimmer {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

@keyframes pet-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-9px); }
  70% { transform: translateY(2px); }
}

@media (max-width: 1040px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-trigger {
    display: grid;
  }

  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .role-bookmarks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-bookmark {
    min-height: 190px;
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card:nth-child(n) {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 680px);
  }

  .brand-copy small {
    display: none;
  }

  .account-trigger {
    display: none;
  }

  .account-menu summary {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }

  .account-menu summary > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 55px;
    padding-block: 54px 84px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 4.6rem);
  }

  .hero-lede {
    margin-block: 20px 26px;
    line-height: 1.85;
  }

  .hero-notes {
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }

  .hero-notes div {
    min-width: 0;
  }

  .hero-visual {
    width: min(94%, 520px);
    justify-self: center;
    transform: rotate(0.5deg);
  }

  .photo-loading-note {
    right: 5px;
  }

  .daily-note-section {
    padding-block: 24px 10px;
  }

  .daily-note-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 22px;
  }

  .daily-note-copy {
    padding-left: 10px;
  }

  .daily-note-photo,
  .daily-note-photo-fallback {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .compact-heading {
    align-items: flex-start;
  }

  .local-favorite-note,
  .comment-total {
    align-self: flex-start;
  }

  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .guestbook-profile {
    position: relative;
    top: auto;
    width: min(100%, 380px);
    margin-inline: auto;
  }

  .guestbook-paper {
    border-radius: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: 1;
  }

  .lightbox-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lightbox-tools {
    justify-content: space-between;
  }
}

@media (max-width: 580px) {
  .header-inner {
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand-seal {
    width: 40px;
    height: 40px;
  }

  .brand-seal img {
    width: 37px;
    height: 37px;
  }

  .brand-copy strong {
    max-width: 108px;
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 6px;
  }

  .locale-switch button {
    min-width: 27px;
    height: 27px;
    padding: 0 6px;
  }

  .menu-trigger {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 42px;
  }

  .paper-tag {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2.38rem, 12vw, 3.5rem);
  }

  .hero-visual {
    width: calc(100% - 10px);
    padding: 12px 12px 17px;
    box-shadow: 10px 12px 0 rgba(201, 193, 231, 0.25), var(--shadow-soft);
  }

  .hero-visual::before {
    right: -8px;
    bottom: 98px;
  }

  .tape {
    width: 68px;
    height: 22px;
  }

  .daily-note-card {
    padding: 26px 18px;
    border-radius: 22px 16px 24px 17px;
    box-shadow: 6px 8px 0 var(--daily-wash), var(--shadow-card);
  }

  .daily-note-copy {
    padding-left: 5px;
  }

  .daily-note-meta,
  .daily-note-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .daily-note-meta time {
    white-space: normal;
  }

  .daily-note-greeting {
    margin-top: 18px;
  }

  .role-bookmarks {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .role-bookmark {
    min-height: 150px;
    padding: 19px 20px;
  }

  .bookmark-name {
    margin-top: 5px;
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .featured-card:nth-child(n) {
    transform: none;
  }

  .guestbook-profile {
    transform: none;
  }

  .gallery-section {
    width: calc(100vw - 12px);
  }

  .gallery-paper {
    padding: 26px 15px 34px;
    border-radius: 24px;
  }

  .gallery-heading {
    margin-bottom: 22px;
  }

  .filter-row {
    gap: 7px;
  }

  .filter-chip {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.75rem;
  }

  .guestbook-paper {
    padding: 23px 15px;
    background:
      repeating-linear-gradient(180deg, transparent 0 33px, rgba(31, 49, 82, 0.07) 33px 34px),
      var(--white);
  }

  .comment-form,
  .comment-list {
    padding-left: 0;
  }

  .comment-form-foot {
    align-items: flex-end;
  }

  .comment-item {
    grid-template-columns: 38px 1fr;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
  }

  .comment-meta {
    display: grid;
    gap: 1px;
  }

  .comment-form .primary-button {
    padding-inline: 14px;
  }

  .lightbox {
    width: 100vw;
    max-width: none;
    max-height: 100svh;
    border-radius: 0;
  }

  .lightbox-media {
    min-height: 65svh;
  }

  .lightbox-media img {
    max-height: 65svh;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .lightbox-arrow:hover {
    transform: scale(1.06);
  }

  .lightbox-copy {
    padding: 18px 18px max(22px, env(safe-area-inset-bottom));
  }

  .favorite-button-wide {
    max-width: 190px;
  }

  .desk-pet {
    width: min(230px, calc(100vw - 24px));
  }

  .pet-avatar {
    height: 132px;
  }

  .pet-avatar img {
    width: 130px;
    height: 141px;
  }
}

@media (max-width: 420px) {
  .daily-note-card {
    padding-inline: 16px;
  }

  .daily-note-tape {
    left: 54%;
  }

  .daily-note-mood {
    min-width: 84px;
    min-height: 44px;
  }

  .daily-note-photo {
    grid-template-columns: minmax(0, 1fr);
    transform: none;
  }

  .daily-note-photo-frame {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .desktop-nav a::after,
  .account-trigger,
  .account-menu summary,
  .drawer-backdrop,
  .mobile-drawer,
  .primary-button,
  .secondary-button,
  .all-roles-link,
  .role-bookmark,
  .featured-card,
  .photo-frame img,
  .favorite-button,
  .filter-chip,
  .hero-photo-wrap img,
  .hero-photo-skeleton,
  .daily-note-photo,
  .desk-pet,
  .pet-wake,
  .pet-speech,
  .pet-avatar img,
  .pet-actions button {
    transition: transform 180ms ease, opacity 180ms ease;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-visual,
  .paper-tag,
  .role-bookmark,
  .featured-card,
  .guestbook-profile {
    transform: none !important;
  }
}

@media print {
  .site-header,
  .desk-pet,
  .pet-wake,
  .primary-button,
  .secondary-button,
  .filter-row,
  .comment-form,
  .favorite-button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-shell,
  .gallery-section {
    width: 100%;
  }
}
