:root {
  color-scheme: light;
  --paper: #f9f5ed;
  --white: #fffcf6;
  --ink: #31271c;
  --muted: #675548;
  --red: #a7442c;
  --red-dark: #853320;
  --line: #e8ddce;
  --display: "Mailbox Serif", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --hand: "Mailbox Hand", var(--display);
  --sans: "Mailbox Sans", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
@font-face {
  font-family: "Mailbox Serif";
  src: url("assets/mailbox-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Mailbox Hand";
  src: url("assets/mailbox-hand-87cbb0b26f2a.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Mailbox Sans";
  src: url("assets/mailbox-sans-dd248ff109ae.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .3em; }
button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1192px); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-bank { position: absolute; width: 0; height: 0; pointer-events: none; }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 10; padding: .5rem 1rem; color: white; background: var(--red-dark); clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.keep-together { white-space: nowrap; }

.site-header { background: var(--paper); }
.nav-shell { min-height: 77px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 500 24px/1.25 var(--sans); letter-spacing: .025em; text-decoration: none; flex: none; }
.brand img { border-radius: 24%; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: .9rem; font-weight: 500; color: var(--muted); }
.site-nav a { padding-block: 8px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.menu-toggle { min-width: 44px; min-height: 44px; display: none; place-items: center; color: var(--ink); }
.menu-toggle .icon { width: 23px; height: 23px; }
.hero { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(34px, 5.5vw, 86px); padding-block: 55px 59px; }
.hero-copy { padding-block: 20px 34px; }
.product-label, .section-label { color: var(--red); font-size: .88rem; letter-spacing: .09em; font-weight: 500; }
.hero h1 { margin-top: 16px; font: 400 clamp(55px, 6.45vw, 94px)/1.09 var(--hand); letter-spacing: -.028em; }
.hero-description { max-width: 30rem; margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 6px; font-size: .93rem; font-weight: 500; line-height: 1.3; text-decoration: none; }
.button-primary { background: var(--red); color: #fffaf2; }
.button-primary:hover { background: var(--red-dark); }
.button-quiet { border-color: #cdb39d; color: #813f2a; }
.button-quiet:hover { background: #edd9c9; }
.hero-meta, .example-caption, .hero-figure figcaption { color: var(--muted); font-size: .82rem; }
.hero-meta { margin-top: 16px; }
.hero-figure { min-width: 0; position: relative; }
.letter-board {
  display: grid; place-items: center; position: relative; overflow: hidden; min-height: 500px;
  padding: 29px 28px 32px; isolation: isolate; border-radius: 8px; border: 1px solid #e5d6bd;
  background: radial-gradient(ellipse at 51% 30%, #fffaf045, transparent 67%), #eee0c8 url("assets/cardstock.webp") center / 330px;
  background-blend-mode: normal, multiply;
}
.board-frame { position: absolute; inset: 13px; border: 1px solid #aa875d38; border-radius: 3px; pointer-events: none; }
.board-frame::before, .board-frame::after { content: ""; position: absolute; width: 19px; height: 19px; border: solid #aa875d72; }
.board-frame::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.board-frame::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.hero-figure figcaption { margin-top: 10px; text-align: center; }

.record-section { background: var(--white); border-block: 1px solid var(--line); padding-block: 79px 86px; }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; gap: 42px; align-items: end; margin-bottom: 35px; }
.section-heading h2, .calendar-copy h2, .company-layout h2 { margin-top: 9px; font: 500 clamp(34px, 4vw, 57px)/1.23 var(--sans); letter-spacing: -.035em; }
.section-heading > p, .calendar-copy > p:not(.section-label), .company-copy > p { max-width: 27rem; color: var(--muted); text-wrap: pretty; }
.section-heading > p { justify-self: end; padding-bottom: 4px; }
.record-grid { --record-visual-height: clamp(228px, 18.5vw, 270px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 34px); }
.record-entry { min-width: 0; }
.record-entry h3 { margin-top: 17px; font: 500 26px/1.35 var(--sans); }
.record-entry > p { margin-top: 7px; color: var(--muted); max-width: 20rem; }
.record-visual { min-height: var(--record-visual-height); border-radius: 7px; overflow: hidden; position: relative; }
.record-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 42%; }
.record-story { display: grid; place-items: center; background: #eadecb; padding: 15px 12px; }
.story-paper {
  width: min(100%, 316px); padding: clamp(11px, 1.4vw, 20px) clamp(13px, 1.65vw, 24px);
  background: #fcf5e7 url("assets/cardstock.webp") center / 330px;
  box-shadow: 1px 5px 14px #5e40292c; transform: rotate(-2deg);
}
.story-paper > span { display: block; padding-bottom: 6px; border-bottom: 1px solid #bfa98570; color: var(--muted); font: 400 1rem/1.35 var(--hand); }
.story-paper blockquote { margin-top: 7px; font: 400 clamp(17px, 1.75vw, 23px)/1.38 var(--hand); color: #58432f; }
.record-voice { display: flex; flex-direction: column; gap: 13px; align-items: center; justify-content: center; background: #efded4; padding: 12px; }
.voice-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #8b4834; border: 1px solid #b8786266; }
.voice-mark .icon { width: 22px; height: 22px; }
.voice-widget { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff8f0; border-radius: 999px; min-height: 48px; padding: 8px 14px; width: min(100%, 270px); }
.waveform, .v5-waveform { display: flex; flex: 1; align-items: center; gap: clamp(2px, .24vw, 4px); min-width: 0; overflow: hidden; color: #a85a41; }
.waveform i, .v5-waveform i { display: block; width: 2px; flex: 0 0 2px; height: var(--wave, 8px); border-radius: 2px; background: currentColor; }
.voice-caption { flex: none; color: var(--muted); font-size: .82rem; }

.calendar-section { padding-block: 97px 92px; }
.calendar-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 115px); align-items: center; }
.calendar-copy > p:not(.section-label) { margin-top: 19px; }
.calendar-copy .calendar-announcement { min-height: 1.5em; margin-top: 7px !important; font-size: .83rem; }
.light-button { margin-top: 22px; }
.calendar-example { min-width: 0; }
.example-caption { margin-top: 11px; }
.calendar-example .example-caption { text-align: center; }

.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid #d2bba3; border-radius: 50%; color: var(--ink); }
.icon-button:hover { background: #eadac8; }

.company-section { padding-block: 70px; background: #efe0d0; }
.company-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 7vw, 94px); align-items: center; }
.company-layout h2 { font-size: clamp(32px, 3.7vw, 51px); }
.company-copy > .company-name { color: var(--ink); margin-bottom: 8px; }
.company-links { display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: 15px; }
.company-links a { color: var(--red-dark); font-weight: 500; font-size: .93rem; }
.site-footer { background: var(--paper); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 23px 36px; padding-block: 30px; }
.footer-inner .brand { font-size: 22px; color: var(--ink); }
.footer-inner p { margin-top: 7px; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .88rem; }
.footer-links a { font-weight: 500; text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; color: var(--red); }

.preview-dialog { width: min(92vw, 610px); max-height: 88dvh; border: 1px solid var(--line); border-radius: 9px; padding: clamp(17px, 4vw, 34px); background: var(--white); color: var(--ink); box-shadow: 0 18px 65px #31271c3b; }
.preview-dialog::backdrop { background: #342b23a3; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dialog-head p { font-size: .84rem; color: var(--red); }
.dialog-head h2 { font: 500 34px/1.25 var(--sans); margin-top: 5px; }
.dialog-content { display: grid; gap: 12px; }
.dialog-content > img { max-height: 48dvh; width: 100%; height: auto; object-fit: contain; border-radius: 3px; }
.dialog-content > p { color: var(--muted); }
.dialog-content .preview-story { font: 400 clamp(22px, 3.5vw, 24px)/1.5 var(--hand); color: #58432f; }

@media (max-width: 1020px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 25px; }
  .letter-board { min-height: 430px; padding-inline: 17px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .nav-shell { min-height: 66px; flex-wrap: wrap; gap: 0 10px; }
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-bottom: 10px; }
  .site-nav[data-open="false"] { display: none; }
  .menu-toggle { display: grid; }
  .brand { font-size: 23px; }
  .brand img { width: 34px; height: 34px; }
  .hero { grid-template-columns: 1fr; gap: 21px; padding-block: 31px 36px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(49px, 13.7vw, 77px); margin-top: 12px; }
  .hero-description { margin-top: 16px; }
  .hero-actions { margin-top: 19px; }
  .hero-meta { margin-top: 11px; }
  .letter-board { min-height: 0; padding: 15px max(14px, 4%) 24px; }
  .board-frame { inset: 8px; }
  .record-section, .calendar-section { padding-block: 52px 57px; }
  .section-heading, .calendar-layout, .company-layout { grid-template-columns: 1fr; gap: 14px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading > p { justify-self: start; padding: 0; }
  .calendar-layout { gap: 17px; }
  .record-grid { gap: 18px; }
  .record-entry h3 { font-size: 24px; }
  .record-entry > p { font-size: .93rem; }
  .calendar-copy .calendar-announcement:empty { display: none; }
  .company-section { padding-block: 48px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .record-grid { --record-visual-height: clamp(204px, 52vw, 264px); grid-template-columns: 1fr; gap: 28px; }
  .record-entry h3 { margin-top: 12px; }
  .record-entry > p { margin-top: 4px; }
  .story-paper blockquote { font-size: clamp(19px, 5.2vw, 23px); }
}
@media (max-width: 525px) {
  .footer-links { gap: 9px 17px; }
}
@media (max-width: 350px) {
  .section-heading h2, .calendar-copy h2, .company-layout h2 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
