@charset "UTF-8";

:root {
  --ink: #192d4c;
  --muted: #53637a;
  --accent: #c23d37;
  --accent-dark: #a12c28;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #d2ddeb;
  --green: #226f55;
  --blue: #265ec0;
  --yellow: #ffd34e;
  --sage: #e6f4ed;
  --shadow: 0 8px 0 #dce6f4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(#8068480b .7px, transparent .7px);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.85;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, label { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid #2872a2; outline-offset: 5px; }
h1:focus { outline: none; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0 0 20px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.55; }
h2 { margin: 28px 0 14px; font-size: 24px; line-height: 1.6; }
p { margin-top: 0; }
.small { color: var(--muted); font-size: 15px; line-height: 1.85; }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .07em; color: var(--accent); }
.lead { margin: 0 0 28px; font-size: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* The atelier's name and a folded-paper mark. */
.site-header { max-width: 1220px; margin: auto; padding: 25px 32px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 15px; color: var(--ink); font-size: 22px; font-weight: 700; text-decoration: none; line-height: 1.5; }
.brand-words small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: .08em; font-weight: 400; }
.brand-mark { display: block; flex: 0 0 39px; width: 39px; height: 44px; border: 1px solid #b6a88b; background: var(--white); transform: rotate(-8deg); position: relative; box-shadow: 3px 4px 0 #d5c5a64d; }
.brand-mark::before { content: ""; position: absolute; inset: 8px 7px 14px; background: #c7d7be; border-radius: 20px 20px 2px 2px; }
.brand-mark::after { content: ""; position: absolute; width: 14px; height: 5px; left: 11px; bottom: 6px; background: #a95c47; }
.detail-back, .footer-back { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: none; }
.detail-back:hover, .footer-back:hover { background: #eee6d8; color: var(--ink); }
main { max-width: 1180px; margin: auto; padding: 30px 32px 74px; }

/* Straightforward actions stay visually separate from paper decorations. */
.primary, .secondary, .upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; gap: 14px; padding: 14px 26px; border: 2px solid transparent; border-radius: 9px; font-size: 19px; font-weight: 700; line-height: 1.6; text-decoration: none; transition: background .16s, box-shadow .16s; }
.primary { background: var(--accent); color: #fffdf7; box-shadow: 0 4px 0 #663225; }
.primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 4px 0 #51281d; }
.secondary { color: var(--ink); background: #fffefa; border-color: #d6cbb8; }
.secondary:hover:not(:disabled) { background: #f0e9dd; }
button:disabled { background: #e5e0d7; border-color: #e5e0d7; color: #736b60; box-shadow: none; cursor: not-allowed; }

/* Large prints and bright shapes in a colourful photo album. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 35px 0 42px; }
.hero h1 { font-family: "Klee One", "Yu Mincho", serif; font-weight: 600; font-size: clamp(34px, 4.15vw, 51px); letter-spacing: -.03em; line-height: 1.65; margin-bottom: 22px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy .lead { font-size: 18px; line-height: 2; color: #65594d; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.little-line { width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.ink-underline { background: linear-gradient(transparent 76%, #dbbd9294 76%, #dbbd9294 92%, transparent 92%); }
.mode-entry { margin: 30px 0 20px; }
.mode-entry > .primary { min-width: 300px; }
.mode-entry > p { margin: 10px 0 22px; }
.advanced-entry { display: flex; align-items: center; gap: 16px; }
.advanced-entry .secondary { min-height: 52px; padding: 10px 19px; font-size: 17px; flex-shrink: 0; }
.advanced-entry .small { font-size: 14px; max-width: 170px; }
.preparation-note { font-size: 14px; color: var(--muted); margin: 22px 0 0; }
.photo-collage { position: relative; height: 460px; isolation: isolate; }

.desk-photo { position: absolute; padding: 10px 10px 0; background: #fffdf7; box-shadow: 0 10px 24px #4d392224, 0 1px 3px #4d392213; border: 1px solid #e6dfd1; }
.desk-photo::before, .paper-tape { content: ""; position: absolute; top: -12px; left: calc(50% - 34px); width: 68px; height: 25px; background: #d9c696c7; transform: rotate(-7deg); z-index: 2; }
.desk-photo canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 0; background: #dbe4d5; }
.desk-photo > span { display: block; text-align: center; padding: 12px 1px 14px; font-family: "Klee One", serif; font-size: 18px; color: #75533d; }
.photo-back { left: 1%; top: 10%; width: 56%; transform: rotate(-12deg); z-index: -1; }
.photo-front { width: 73%; left: 21%; top: 21%; transform: rotate(6deg); z-index: 2; }
.photo-small { width: 43%; right: 0; bottom: 0; transform: rotate(-7deg); z-index: 3; }
.photo-small > span { font-size: 14px; padding: 8px 0 10px; }









.simple-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.simple-steps > div { display: flex; align-items: center; gap: 15px; }
.simple-steps b { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; color: var(--green); background: #e8ecdf; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.simple-steps strong { display: block; font-size: 19px; }
.simple-steps small { display: block; color: var(--muted); font-size: 14px; }

/* A playable, illustrated sample; no autoplay. */
.sample-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding: 46px 0 0; }
.sample-copy h2 { font-family: "Klee One", serif; font-weight: 600; font-size: 33px; line-height: 1.7; margin: 0 0 20px; }
.sample-copy > p:not(.eyebrow):not(.small) { color: #65594d; font-size: 17px; line-height: 2; margin-bottom: 20px; }
.sample-signature { display: block; font-family: "Klee One", serif; font-size: 17px; margin-top: 20px; color: var(--green); }
.sample-player { position: relative; padding: 17px 17px 12px; background: var(--white); border: 1px solid #e1d8c8; box-shadow: var(--shadow); border-radius: 3px; }
.sample-player .paper-tape { top: -12px; transform: rotate(3deg); }
.sample-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.sample-controls .secondary { font-size: 16px; min-height: 48px; padding: 8px 16px; }
#home-sample-seek { display: block; width: 100%; min-height: 38px; accent-color: var(--green); }
#home-sample-status { margin: 0; }

/* The work area remains calm and aligned. */
.mode-label { display: inline-block; padding: 5px 17px; margin: 0 0 15px; font-size: 15px; font-weight: 700; color: var(--green); background: #e5ecdf; border-radius: 24px; }
.progress { display: flex; gap: 12px; list-style: none; margin: 0 0 25px; padding: 0; }
.progress li { flex: 1; text-align: center; padding: 12px 8px; border-bottom: 3px solid var(--line); font-size: 17px; color: var(--muted); }
.progress li.active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.panel { position: relative; padding: 38px; border: 1px solid #e1d8c9; border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.actions { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.upload-area { margin: 25px 0 16px; }
.upload-button { position: relative; justify-content: flex-start; gap: 18px; min-width: 330px; min-height: 103px; padding: 20px 28px; background: #f3f5ec; border: 2px dashed #95a38c; cursor: pointer; }
.upload-button > span > small { display: block; margin-top: 3px; color: #60705c; font-size: 14px; font-weight: 400; }
.upload-button:focus-within { outline: 4px solid #2872a2; outline-offset: 5px; }
#photo-input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload-photo-mark { position: relative; display: block; width: 35px; height: 30px; border: 2px solid #71846b; background: #fffdf7; flex-shrink: 0; }
.upload-photo-mark::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #a4b590; top: 4px; right: 4px; }
.upload-photo-mark::after { content: ""; position: absolute; left: 3px; bottom: 3px; width: 22px; height: 9px; background: #9db38e; clip-path: polygon(0 100%,35% 0,62% 68%,78% 25%,100% 100%); }
.count { margin: 22px 0 16px; color: var(--green); font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.photo-item { position: relative; min-width: 0; padding: 11px 11px 3px; border: 1px solid #e0d8ca; background: #fffefa; box-shadow: 0 5px 14px #4d39220c; }
.photo-item::before { content: ""; position: absolute; left: calc(50% - 23px); top: -8px; width: 46px; height: 17px; background: #d5c8a4b3; transform: rotate(-4deg); z-index: 1; }
.photo-item > img { display: block; width: 100%; height: 178px; object-fit: contain; background: #ece9df; }
.photo-item > p { font-size: 14px; margin: 11px 2px; overflow-wrap: anywhere; }
.photo-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.photo-controls button { border: 1px solid var(--line); border-radius: 5px; background: #fffefa; color: var(--ink); min-height: 44px; padding: 6px 10px; font-size: 14px; }
.photo-controls button:hover:not(:disabled) { background: #ecefe4; }
.photo-controls button:disabled { opacity: .5; }
.photo-caption-area { margin: 10px -2px 2px; padding: 13px 10px 9px; border-top: 1px dashed #dcd0b9; background: #f8f4e9; }
.photo-caption-label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
textarea { width: 100%; min-height: 160px; padding: 18px; border: 1px solid #bfb29e; border-radius: 5px; background: #fffefa; color: var(--ink); resize: vertical; }
.photo-caption-input { display: block; min-height: 92px; padding: 10px; font-size: 16px; line-height: 1.65; background: #fffdf7; }
.photo-caption-count { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* A message is a letter, not a settings form. */
.preset-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin: 27px 0; }
.preset { position: relative; padding: 21px 17px; min-height: 106px; border: 1px solid #d8cfbc; border-left: 3px solid #a8b293; background: #fbf8ee; color: var(--ink); text-align: left; font-size: 17px; border-radius: 3px; box-shadow: 0 3px 8px #6a553508; }
.preset span { display: block; margin-top: 5px; font-size: 15px; }
.preset:hover, .preset[aria-pressed="true"] { background: #edf0e3; border-color: #7c9071; }
.letter-sheet { position: relative; margin: 30px 0; padding: 28px 31px 25px; background: #fffdf7; border: 1px solid #dcd0bd; box-shadow: 4px 6px 0 #ede5d5; }
.letter-salutation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid #e4dac8; font-family: "Klee One", serif; font-size: 24px; color: var(--accent); }
.letter-flower { display: block; width: 24px; height: 24px; border-radius: 50% 20% 50% 20%; border: 1px solid #a6b18d; background: #e3e9d5; transform: rotate(25deg); }
.field-label { display: block; font-weight: 700; margin-bottom: 12px; font-size: 17px; }
#message-input { min-height: 170px; background: #fffefa; border: 1px solid #c5b8a3; font-size: 20px; }
.letter-rule { width: 90px; height: 1px; background: #bcab89; margin: 25px auto 0; }
.message-sample { background: #f2ecde; padding: 28px; text-align: center; border-radius: 4px; }
#message-sample { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #744b34; font-size: 26px; line-height: 1.75; }
#message-font-note { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* Six printed specimen cards, showing frames from the actual renderers. */
.template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; padding: 0; border: 0; margin: 25px 0 0; }
.template { position: relative; min-width: 0; padding: 11px 11px 19px; border: 2px solid #dcd3c1; border-radius: 5px; background: #fffdf7; cursor: pointer; box-shadow: 0 5px 13px #5d43200b; transition: border-color .16s, box-shadow .16s; }
.template:hover { border-color: #a4987e; }
.template:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent),0 7px 15px #7c472419; }
.template-preview { position: relative; display: block; overflow: hidden; background: #e8e0d0; }
.template-preview canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; font-size: 14px; font-weight: 700; color: #fffdf8; background: var(--green); border-radius: 3px; }
.template-choice { display: flex; gap: 10px; align-items: center; margin: 17px 6px 11px; }
.template-choice input { width: 22px; height: 22px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.template-choice strong { font-size: 19px; line-height: 1.55; }
.selection-pill { margin-left: auto; white-space: nowrap; font-size: 14px; color: #776d5e; }
.choice-active { display: none; color: var(--accent); font-weight: 700; }
.template:has(input:checked) .choice-active { display: inline; }
.template:has(input:checked) .choice-idle { display: none; }
.template-description { display: block; margin: 0 8px; font-size: 16px; color: #6b5d4f; line-height: 1.8; }
.template-art-note { margin: 18px 0 0; }
.design-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; border: 0; padding: 0; margin: 20px 0; }
.design-option { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 5px; background: #fffefa; cursor: pointer; min-width: 0; }
.design-option input { width: 23px; height: 23px; margin: 0; accent-color: var(--accent); }
.design-option:has(input:checked) { background: #faf0e4; border-color: var(--accent); }
.design-option strong { font-size: 17px; }
.design-option > span { color: var(--muted); font-size: 14px; }
.settings { margin: 28px 0; padding: 22px 25px; border: 1px solid #dcd2bf; background: #f9f6ed; }
.duration-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.duration-heading label { margin: 0; font-size: 18px; font-weight: 700; }
.duration-heading output { font-weight: 700; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
#duration, #preview-position { display: block; width: 100%; min-height: 46px; margin: 10px 0 0; accent-color: var(--accent); }
.duration-scale { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
#duration-help { margin: 12px 0 0; }
#preview-area { margin-top: 32px; padding-top: 8px; }
.preview-seek-label { display: block; font-weight: 700; font-size: 16px; margin-top: 15px; }
#preview-toggle { margin-top: 12px; }
#preview-time { margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.privacy-note { margin-top: 28px; padding: 20px 23px; border-left: 3px solid #a0af92; background: #eef2e8; color: #4b5d47; font-size: 15px; border-radius: 3px; }
.privacy-note p { margin: 6px 0 0; }

/* A completed gift, ready to keep. */
canvas, video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 7px; background: #eee5d5; }
.centered { text-align: center; }
.centered .actions { text-align: left; }
.completion-panel { padding-top: 40px; }
.completion-seal { position: relative; width: 66px; height: 66px; margin: 0 auto 23px; background: #e7ecdc; border-radius: 50%; border: 1px solid #cad4b8; }
.completion-seal span { position: absolute; width: 25px; height: 14px; left: 20px; top: 21px; border-bottom: 3px solid #55724f; border-left: 3px solid #55724f; transform: rotate(-45deg); }
.finished-film { position: relative; padding: 14px; margin-top: 28px; border: 1px solid #ded2bd; background: #fffdf5; box-shadow: 0 5px 18px #6a4c2012; }
.finished-film::before, .finished-film::after { content: ""; position: absolute; top: -9px; width: 65px; height: 23px; background: #d9c69eaa; pointer-events: none; }
.finished-film::before { left: 14px; transform: rotate(-18deg); }
.finished-film::after { right: 14px; transform: rotate(18deg); }
.download-area { margin: 30px 0; }
.download-area .primary { min-width: 265px; }
#format-note { margin-top: 20px; }
progress { width: 100%; height: 22px; accent-color: var(--accent); margin: 24px 0 8px; }
#generation-preview { margin-top: 24px; }
#notice { position: sticky; bottom: 16px; margin-top: 22px; padding: 18px; border: 2px solid #a04a31; background: #fff3ea; border-radius: 8px; color: #713920; white-space: pre-wrap; z-index: 5; }
footer { padding: 31px 24px 27px; border-top: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--muted); }
footer strong { color: #5c4d3e; font-size: 16px; font-weight: 600; }
footer > span { display: block; margin-top: 6px; }
.footer-back { margin-top: 20px; min-height: 44px; background: transparent; font-size: 14px; }

@media (max-width: 980px) {
  .hero { gap: 12px; }
  .hero h1 { font-size: 39px; }
  .photo-collage { height: 390px; }
  .advanced-entry { align-items: flex-start; flex-direction: column; gap: 8px; }
  .advanced-entry .small { max-width: none; }
  .simple-steps { gap: 14px; }
  .simple-steps > div { gap: 10px; }
  .simple-steps strong { font-size: 17px; }
  .simple-steps small { font-size: 14px; }
  .sample-section { gap: 26px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { padding: 19px 18px; flex-wrap: wrap; gap: 15px; }
  .brand { font-size: 19px; gap: 11px; }
  .brand-words small { font-size: 12px; }
  .brand-mark { flex-basis: 32px; width: 32px; height: 38px; }
  .brand-mark::before { inset: 7px 5px 12px; }
  .brand-mark::after { left: 8px; bottom: 5px; }
  .detail-back { min-height: 44px; padding: 7px 12px; font-size: 14px; }
  main { padding: 22px 17px 48px; }
  .hero { grid-template-columns: 1fr; padding: 14px 0 28px; gap: 14px; }
  .hero h1 { font-size: clamp(31px, 7.4vw, 41px); line-height: 1.7; }
  .hero-copy .eyebrow { font-size: 13px; }
  .hero-copy .lead { font-size: 17px; }
  .mode-entry { margin-top: 25px; }
  .mode-entry > .primary { width: 100%; min-width: 0; }
  .advanced-entry { align-items: stretch; gap: 10px; }
  .advanced-entry .secondary { width: 100%; }
  .preparation-note { font-size: 13px; }
  .photo-collage { width: 100%; max-width: 460px; height: 355px; margin: 5px auto; }
  .desk-photo > span { font-size: 16px; padding: 9px 0 11px; }
  .photo-small > span { font-size: 12px; padding: 7px 0; }
  .desk-photo { padding: 7px 7px 0; }
  
  
  
  
  
  
  
  
  .simple-steps { grid-template-columns: 1fr; gap: 17px; padding: 23px 0; }
  .simple-steps strong { font-size: 18px; }
  .simple-steps small { font-size: 14px; }
  .sample-section { grid-template-columns: 1fr; padding-top: 34px; gap: 26px; }
  .sample-copy h2 { font-size: 29px; }
  .sample-copy > p:not(.eyebrow):not(.small) { font-size: 17px; }
  .sample-signature { margin-top: 15px; }
  .sample-controls { gap: 10px; flex-wrap: wrap; }
  .sample-controls .small { font-size: 13px; }
  .panel { padding: 25px 19px; }
  .lead { font-size: 18px; }
  .progress { gap: 4px; }
  .progress li { padding: 10px 3px; font-size: 15px; }
  .primary, .secondary { min-height: 56px; padding: 13px 17px; font-size: 18px; }
  .actions { flex-direction: column-reverse; gap: 14px; }
  .actions > * { width: 100%; }
  .upload-button { width: 100%; min-width: 0; padding: 19px 18px; font-size: 19px; }
  .upload-button > span > small { font-size: 13px; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 12px; }
  .photo-item { padding: 7px 7px 2px; }
  .photo-item > img { height: 130px; }
  .photo-item > p { font-size: 13px; }
  .photo-controls { gap: 5px; }
  .photo-controls button { padding: 5px 7px; font-size: 14px; }
  .photo-caption-area { padding: 10px 7px 8px; }
  .photo-caption-label { font-size: 14px; }
  .photo-caption-input { font-size: 16px; padding: 8px; }
  .photo-caption-count { font-size: 14px; }
  .preset-list { grid-template-columns: 1fr; gap: 12px; }
  .preset { min-height: 85px; padding: 17px 20px; }
  .letter-sheet { padding: 22px 17px; }
  #message-input { font-size: 18px; }
  .message-sample { padding: 23px 18px; }
  #message-sample { font-size: 23px; }
  .template-grid { grid-template-columns: 1fr; gap: 20px; }
  .template-choice { margin: 15px 3px 10px; gap: 9px; }
  .template-choice strong { font-size: 18px; }
  .selection-pill { font-size: 14px; }
  .template-description { font-size: 15px; margin: 0 5px; }
  .design-grid { grid-template-columns: 1fr; }
  .design-option { display: grid; grid-template-columns: 24px 90px 1fr; gap: 10px; align-items: center; }
  .design-option canvas { grid-column: 2; grid-row: 1 / 3; }
  .design-option strong { grid-column: 3; grid-row: 1; font-size: 16px; }
  .design-option > span { grid-column: 3; grid-row: 2; font-size: 14px; }
  .design-option input { grid-column: 1; grid-row: 1 / 3; }
  .settings { padding: 18px; }
  .duration-heading label { font-size: 16px; }
  .duration-scale { font-size: 13px; }
  .privacy-note { padding: 17px 18px; }
  .finished-film { padding: 8px; }
  .download-area .primary { width: 100%; min-width: 0; }
}
@media (max-width: 370px) {
  .photo-collage { height: 305px; }
  
  
  
  .desk-photo > span { font-size: 14px; }
  .photo-small > span { font-size: 11px; }
  .photo-grid { grid-template-columns: 1fr; gap: 22px; }
  .photo-item > img { height: 200px; }
  .template-choice { flex-wrap: wrap; }
  .selection-pill { margin-left: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .photo-collage { animation: settle-in .7s ease-out both; }
  @keyframes settle-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* Colourful photo-album theme: strong shapes, white space and bold type. */
body { background: #fff; color: var(--ink); }
h1, h2, .brand-words, .template-choice strong { font-family: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-weight: 700; }
.site-header { border-bottom: 2px solid #e4ebf5; }
.brand { color: var(--ink); }
.brand-mark { background: var(--blue); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--yellow); transform: rotate(-7deg); border-radius: 5px; }
.brand-mark::before { background: #fff; border-radius: 2px; }
.brand-mark::after { background: #ff7e70; height: 6px; bottom: 5px; }
.brand-words small { color: #4f6280; font-family: "Yu Gothic", sans-serif; letter-spacing: .04em; }
.detail-back, .footer-back { color: var(--blue); background: #fff; border: 2px solid #c5d6ee; border-radius: 10px; }
.detail-back:hover, .footer-back:hover { background: #edf4ff; color: #19428b; }
.primary { background: var(--accent); border-color: var(--accent); border-radius: 12px; box-shadow: 0 5px 0 #8b2928; font-size: 20px; }
.primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 5px 0 #75201f; }
.secondary { color: var(--blue); border: 2px solid #a5bee3; border-radius: 11px; background: #fff; }
.secondary:hover:not(:disabled) { background: #eaf2ff; }
button:disabled { background: #e1e7ef; border-color: #e1e7ef; color: #68778b; box-shadow: none; }
.eyebrow { color: var(--blue); font-size: 16px; letter-spacing: .04em; }
.hero { gap: 34px; padding-top: 41px; padding-bottom: 53px; }
.hero h1 { font-family: "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-weight: 700; font-size: clamp(35px, 4.2vw, 53px); line-height: 1.6; letter-spacing: -.035em; }
.hero-copy .eyebrow { color: var(--blue); font-size: 15px; }
.hero-copy .lead { color: #4f607a; font-size: 19px; }
.little-line { width: 17px; height: 17px; border-radius: 50%; background: var(--yellow); border: 3px solid #dcab20; }
.ink-underline { background: linear-gradient(transparent 71%, #ffda62 71%, #ffda62 96%, transparent 96%); }
.mode-entry > .primary { min-height: 67px; min-width: 310px; }
.advanced-entry .secondary { color: var(--blue); font-size: 18px; }
.preparation-note { color: #536581; }
.photo-collage { position: relative; height: 470px; isolation: isolate; clip-path: inset(-12px); }
.collage-shape { display: block; position: absolute; pointer-events: none; z-index: -2; }
.shape-blue { width: 75%; height: 80%; top: 5%; left: 0; border-radius: 48% 42% 45% 38%; background: #dceaff; transform: rotate(-9deg); }
.shape-yellow { width: 62%; height: 55%; right: -3%; bottom: 0; border-radius: 23px; background: var(--yellow); transform: rotate(9deg); }
.shape-coral { width: 91px; height: 91px; right: -1%; top: 1%; border: 15px solid #ff877a; border-radius: 50%; }
.desk-photo { padding: 11px 11px 0; border: 3px solid var(--ink); border-radius: 7px; background: #fff; box-shadow: 6px 8px 0 #192d4c20; }
.desk-photo::before { width: 72px; height: 25px; top: -14px; left: calc(50% - 36px); background: #ffd34ee8; border-radius: 2px; }
.desk-photo canvas { filter: saturate(1.2) contrast(1.025); border-radius: 2px; }
.desk-photo > span { color: var(--ink); font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 18px; padding: 13px 0 15px; }
.photo-back { width: 58%; left: 0; top: 6%; transform: rotate(-10deg); border-color: var(--blue); z-index: -1; }
.photo-front { width: 76%; left: 19%; top: 25%; transform: rotate(7deg); border-color: var(--accent); z-index: 2; }
.photo-front::before { background: #9bcbefe8; transform: rotate(-13deg); }
.photo-small { width: 47%; right: -1%; bottom: 0; transform: rotate(-6deg); border-color: var(--green); z-index: 3; }
.photo-small > span { font-size: 14px; padding: 10px 0 12px; }
.collage-note { position: absolute; top: 4%; right: 4%; padding: 7px 16px; border: 2px solid var(--ink); border-radius: 9px; background: var(--accent); color: #fff; font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 19px; transform: rotate(7deg); box-shadow: 4px 4px 0 #1a2d4c20; }
.collage-tag { position: absolute; bottom: 8%; left: 1%; max-width: 54%; padding: 7px 12px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; transform: rotate(-5deg); z-index: 4; }
.simple-steps { border: 0; padding: 0; gap: 18px; }
.simple-steps > div { padding: 22px 18px; border: 2px solid #c2d5f2; border-radius: 15px; background: #eaf2ff; }
.simple-steps > div:nth-child(2) { border-color: #efd06f; background: #fff7d9; }
.simple-steps > div:nth-child(3) { border-color: #a8d6c2; background: #e8f5ee; }
.simple-steps b { width: 43px; height: 43px; background: var(--blue); color: #fff; font-family: "Zen Maru Gothic", sans-serif; font-size: 24px; font-weight: 700; }
.simple-steps > div:nth-child(2) b { background: #876300; }
.simple-steps > div:nth-child(3) b { background: var(--green); }
.simple-steps strong { color: var(--ink); font-size: 19px; }
.simple-steps small { color: #4f6076; font-size: 14px; }
.sample-section { margin-top: 44px; padding: 35px 30px; border: 2px solid #c9dafa; border-radius: 20px; background: #f0f6ff; gap: 30px; }
.sample-copy h2 { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 33px; line-height: 1.65; }
.sample-copy > p:not(.eyebrow):not(.small) { color: #4f607a; }
.sample-signature { color: var(--green); font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; }
.sample-player { padding: 14px; background: #fff; border: 3px solid var(--blue); border-radius: 13px; box-shadow: 6px 7px 0 #ffd34e; }
.sample-player .paper-tape { display: none; }
.sample-controls .secondary { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.mode-label { color: #fff; background: var(--blue); border-radius: 9px; font-size: 16px; }
.progress { gap: 10px; }
.progress li { background: #f1f5fa; border: 2px solid #dbe4ef; border-radius: 10px; color: #56677e; font-weight: 700; }
.progress li.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.panel { border: 2px solid #d0dced; border-radius: 18px; background: #fff; box-shadow: 0 8px 0 #edf2fa; }
.upload-button { color: var(--blue); background: #edf4ff; border: 2px dashed #648bc7; border-radius: 13px; }
.upload-button > span > small { color: #4d668b; }
.upload-photo-mark { border-color: var(--blue); background: #fff; }
.upload-photo-mark::before { background: #f1bc37; }
.upload-photo-mark::after { background: #7cad96; }
.photo-item { border: 2px solid #b7ceef; border-radius: 10px; box-shadow: 0 5px 0 #e8f0fc; background: #fff; }
.photo-item:nth-child(3n + 2) { border-color: #efb2a9; box-shadow: 0 5px 0 #fff0ec; }
.photo-item:nth-child(3n) { border-color: #9acbb4; box-shadow: 0 5px 0 #eaf5ee; }
.photo-item::before { background: #ffd34ee6; border-radius: 2px; }
.photo-item > img { background: #eff3f9; }
.photo-controls button { color: var(--blue); border: 1px solid #b7cbed; border-radius: 7px; background: #fff; font-weight: 700; }
.photo-controls button:hover:not(:disabled) { background: #eaf2ff; }
.photo-caption-area { background: #f2f6fd; border-top: 1px dashed #b7cbed; border-radius: 5px; }
textarea, #message-input { border: 2px solid #b5c6de; border-radius: 9px; color: var(--ink); background: #fff; }
.preset { color: var(--ink); border: 2px solid #c9d8f0; border-top: 7px solid var(--blue); border-radius: 10px; background: #f5f9ff; box-shadow: none; }
.preset:nth-child(2) { border-color: #efd67e; border-top-color: #d1a31c; background: #fffbea; }
.preset:nth-child(3) { border-color: #b5d7c4; border-top-color: var(--green); background: #f0f8f3; }
.preset:hover, .preset[aria-pressed="true"] { border-color: var(--accent); background: #fff0ec; box-shadow: 0 0 0 1px var(--accent); }
.letter-sheet { border: 2px solid #c4d4ed; border-left: 8px solid var(--blue); border-radius: 12px; background: #fff; box-shadow: 5px 6px 0 #e8f0fc; }
.letter-salutation { color: var(--blue); font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; border-bottom-color: #dce5f3; }
.letter-flower { background: var(--yellow); border-color: #cfab31; border-radius: 50%; }
.letter-rule { height: 6px; width: 112px; border-radius: 3px; background: linear-gradient(90deg,var(--blue) 0 33%,var(--yellow) 33% 66%,var(--accent) 66%); }
.message-sample { border: 2px solid #a9d1bc; border-radius: 12px; background: #edf8f1; }
#message-sample { color: #233e37; }
.template { --scene-color: var(--blue); --scene-tint: #eaf2ff; padding: 11px 11px 20px; border: 3px solid var(--scene-color); border-radius: 14px; box-shadow: 0 6px 0 var(--scene-tint); background: #fff; }
.template[data-scene="board"], .template[data-scene="meal"] { --scene-color: #c64a42; --scene-tint: #fff0ec; }
.template[data-scene="film"] { --scene-color: #bc8b0f; --scene-tint: #fff5d5; }
.template[data-scene="television"] { --scene-color: #2c8061; --scene-tint: #e8f6ee; }
.template:hover { border-color: var(--scene-color); box-shadow: 0 8px 0 var(--scene-tint); }
.template:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px #fff,0 0 0 5px var(--ink); }
.template-preview { padding: 6px; border-radius: 7px; background: var(--scene-tint); }
.template-preview canvas { border-radius: 4px; }
.template-choice input { accent-color: var(--ink); }
.template-choice strong { color: var(--ink); font-size: 20px; }
.selection-pill { color: #52637b; font-weight: 700; }
.template:has(input:checked) .selection-pill { padding: 3px 8px; border-radius: 6px; background: var(--ink); }
.choice-active { color: #fff; }
.template-description { color: #526179; }
.badge { color: #fff; background: var(--blue); border-radius: 6px; }
.design-option { border: 2px solid #c6d5ec; border-radius: 10px; background: #fff; }
.design-option:has(input:checked) { background: #eaf2ff; border-color: var(--blue); }
.design-option input { accent-color: var(--blue); }
.settings { background: #f3f7fd; border: 2px solid #cad9ef; border-radius: 12px; }
.duration-heading output { color: #fff; background: var(--blue); border-radius: 8px; padding: 3px 12px; }
#duration, #preview-position, #home-sample-seek { accent-color: var(--blue); }
.privacy-note { background: #edf7f1; color: #355c48; border-left: 5px solid var(--green); border-radius: 9px; }
.completion-seal { border: 0; background: var(--accent); box-shadow: 5px 5px 0 var(--yellow); }
.completion-seal span { border-color: #fff; }
.completion-panel h1 { color: var(--blue); }
.finished-film { padding: 13px; border: 3px solid var(--blue); border-radius: 14px; background: #fff; box-shadow: 6px 7px 0 #ffdb68; }
.finished-film::before, .finished-film::after { background: #ffd34ee8; border-radius: 3px; }
.actions { border-top: 2px solid #e4eaf3; }
footer { background: #f1f6ff; border-top: 2px solid #d6e3f6; color: #536683; }
footer strong { color: var(--blue); font-size: 18px; }
#notice { border-color: #b34334; background: #fff0eb; color: #7a2e23; }
@media (max-width: 980px) {
  .hero { gap: 18px; }
  .hero h1 { font-size: 39px; }
  .photo-collage { height: 405px; }
  .simple-steps > div { padding: 18px 13px; }
  .simple-steps strong { font-size: 17px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 15px; padding-bottom: 30px; gap: 25px; }
  .hero h1 { font-size: clamp(31px,7.8vw,42px); }
  .hero-copy .eyebrow { font-size: 14px; }
  .hero-copy .lead { font-size: 18px; }
  .mode-entry > .primary { min-width: 0; min-height: 65px; font-size: 21px; }
  .photo-collage { height: 365px; }
  .desk-photo { border-width: 2px; padding: 8px 8px 0; }
  .desk-photo > span { font-size: 15px; padding: 10px 0 12px; }
  .photo-small > span { font-size: 12px; padding: 8px 0 10px; }
  .collage-note { top: 3%; right: 5%; font-size: 16px; padding: 6px 11px; }
  .collage-tag { font-size: 13px; left: 0; bottom: 7%; max-width: 54%; }
  .shape-coral { width: 75px; height: 75px; border-width: 12px; }
  .simple-steps { gap: 13px; }
  .simple-steps > div { padding: 17px 19px; }
  .simple-steps strong { font-size: 19px; }
  .sample-section { padding: 27px 20px; gap: 25px; margin-top: 30px; border-radius: 16px; }
  .sample-copy h2 { font-size: 30px; }
  .sample-player { padding: 10px; box-shadow: 4px 5px 0 var(--yellow); }
  .template-choice strong { font-size: 19px; }
  .panel { border-radius: 14px; }
}
@media (max-width: 370px) {
  .photo-collage { height: 310px; }
  .desk-photo > span { font-size: 13px; }
  .photo-small > span { font-size: 11px; }
  .collage-note { font-size: 14px; }
  .collage-tag { font-size: 12px; padding: 5px 8px; }
}
