/* 2449 Hallmark A3 (docs/design/sketches/2449r/home-a3.html, mx-a3.html; DESIGN.md "Look"): the platform's type, paper and ink, the floor
   every page keeps, and the two first screens (home, a store with a photo hero). Loaded last on home and on store pages. */
@font-face { font-family: "Gloock"; src: url(/fonts/hm/Gloock-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya"; src: url(/fonts/hm/Alegreya-var.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/fonts/hm/AlegreyaSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(/fonts/hm/AlegreyaSans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root { --display: "Gloock", Georgia, serif; --display-fiesta: "Alegreya", Georgia, serif; }
:lang(zh), :lang(ja), :lang(ar) { --display: var(--serif, serif); --display-fiesta: var(--serif, serif); }

/* the floor, every page */
html, body { overflow-x: clip; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a:active, button:active { opacity: .86; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- home: paper, ink, one red ---------- */
html:not([data-theme="large"]) body.home, html:not([data-theme="large"]) body.cg-page {
  --bg: #f5f3ee; --surface: #fbf9f4; --surface-2: #ece8df; --ink: #1d1b18; --muted: #57524a; --line: #d9d4ca; --accent: #b3261e; --on-accent: #fffdf9;
  --serif: var(--display);
}
@media (prefers-color-scheme: dark) { html:not([data-theme="large"]) body.home, html:not([data-theme="large"]) body.cg-page { --bg: #141412; --surface: #1d1c19; --surface-2: #26241f; --ink: #ece7dd; --muted: #b3ab9e; --line: #34312c; --accent: #ff8a7a; --on-accent: #1a0604; } }
body.home .hx-h1, body.home .hx-h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
body.home .hx-h1 { font-size: clamp(2.375rem, 10.4vw, 3.4rem); line-height: 1.02; }
body.home .hx-vk { font-style: normal; font-weight: 400; }
body.home .hx-hero { padding: 0 0 8px; }
body.home .hx-hero .hx-in { gap: 0; padding: 0; max-width: none; }
body.home .hx-hero .hx-in > div:first-child { padding: 20px 22px 8px; display: grid; gap: 14px; justify-items: start; }
body.home .hx-p, body.home .hx-vk, body.home .hx-under, body.home .hx-what { margin: 0; }
body.home a.hx-go { width: auto; min-width: 12rem; margin-top: 4px; border-radius: 4px; }
body.home .hx-under { text-align: start; }
body.home a.hx-or { justify-content: flex-start; width: auto; min-height: var(--tap); text-align: start; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
body.home .hx-nw { white-space: nowrap; }
body.home .hx-nw::after { content: "\2192"; margin-inline-start: .4em; display: inline-block; }
[dir="rtl"] body.home .hx-nw::after { transform: scaleX(-1); }
body.home .hx-what { text-align: start; }
/* the photograph of the thing that arrives, where it hangs: edge to edge, price as its caption */
body.home .hx-wall { order: -1; display: block; padding: 0; border-radius: 0; background: var(--surface-2); overflow: visible; }
body.home .hx-photo { display: block; width: 100%; height: clamp(18rem, 50svh, 34rem); object-fit: cover; object-position: 40% 46%; }
body.home .hx-wall .hx-cap { margin: 0; padding: 10px 22px 0; font-size: var(--small); color: var(--muted); }
body.home .hx-wall .hx-cap b { color: var(--ink); font-weight: 600; }
body.home .hx-row, body.home .hx-wall { box-shadow: none; }
body.home .hx-row { border-radius: 0; background: none; border-bottom: 1px solid var(--line); padding-inline: 0; }
body.home .hx-doors .hx-rows, body.home .hx-sec .hx-rows { gap: 0; border-top: 1px solid var(--line); }
body.home .hx-sec { border-top: 0; }
body.home .hx-st { gap: 14px; }
body.home .hx-credit { margin: 14px 0 0; font-size: var(--small); color: var(--muted); }
body.home .hx-foot .hx-in { max-width: 1120px; padding-inline: 20px; }
@media (min-width: 760px) {
  body.home .hx-hero .hx-in { max-width: none; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: stretch; min-height: min(78svh, 760px); }
  body.home .hx-photo { height: 100%; min-height: 28rem; }
  body.home .hx-hero .hx-in > div:first-child { align-content: center; padding: 40px clamp(32px, 5vw, 72px); }
  body.home .hx-h1 { font-size: clamp(2.75rem, 4.6vw, 4rem); }
  body.home .hx-sec:not(.hx-doors) .hx-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
  body.home .hx-doors .hx-rows { gap: 0 32px; border-top: 0; }
  body.home .hx-doors .hx-row { border-top: 1px solid var(--line); }
}
@media (min-width: 760px) { body.home .hx-wall { display: grid; grid-template-rows: 1fr auto; } body.home .hx-wall .hx-cap { padding: 10px 22px; } }
@media (min-width: 640px) and (max-height: 500px) { body.home .hx-photo { height: 100%; min-height: 0; } body.home .hx-hero .hx-in { min-height: 0; } }
html[data-theme="large"] body.home .hx-photo { height: clamp(9rem, 22svh, 20rem); }

/* ---------- a store with a photo hero (stores' data: hero.photo) ---------- */
body.store .store-hero.photo { width: 100vw; max-width: none; margin: 0 calc(50% - 50vw) 16px; padding: 0; border-radius: 0; float: none; }
body.store .store-hero.photo > img { width: 100%; max-height: none; height: clamp(16rem, 44svh, 28rem); object-fit: cover; object-position: 50% 72%; border-radius: 0; }
body.store .store-hero.photo ~ .try, body.store .store-hero.photo ~ .status { display: block; }
body.store .store-hero.photo + h1, body.store .store-hero.photo + #top { margin-top: 8px; }
body.store h1 { font-family: var(--st-font, var(--display)); font-weight: 800; letter-spacing: -.01em; line-height: 1.02; }
body.store .store-plan { border: 0; border-radius: 4px; }
body.store .act { border-radius: 4px; }
body.store .try.more { margin-top: 16px; }   /* 3371: the other doors (寒中見舞い, じまい, 千歳飴袋) are outlined; one primary per page */
body.store .try.more .act { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (min-width: 900px) { body.store .store-hero.photo > img { height: clamp(18rem, 42svh, 26rem); object-position: 50% 62%; } }
body.store .store-credit { display: block; margin: -8px 0 12px; font-size: var(--small); color: var(--muted); }
/* pre-walk: the button stays on the first screen on small phones, sideways and Large */
/* 1653: the signature takes room, so on one-column screens the photo gives it back and Do it with me stays on the first screen */
@media (max-width: 759px) { body.home .hx-photo, html[data-theme="large"] body.home .hx-photo { height: clamp(9rem, 28svh, 15rem); min-height: 0; } }
@media (max-width: 380px) { body.home .hx-photo { height: clamp(8rem, 24svh, 14rem); } body.store .store-hero.photo > img { height: clamp(11rem, 30svh, 16rem); } }
@media (orientation: landscape) and (max-height: 500px) { body.store .store-hero.photo { float: left; width: 44%; max-width: 44%; margin: 0 16px 8px 0; } body.store .store-hero.photo > img { height: 50svh; min-height: 8rem; } body.store .store-credit { margin: 0 0 4px; } body.store .doc h1 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 6px; } body.store .store-hero.photo ~ .store-plan { clear: none; display: flex; flex-direction: column; padding: 10px 14px; margin: 0 0 8px; } body.store .store-hero.photo ~ .store-plan > h2 { display: none; } body.store .store-hero.photo ~ .store-plan > .try { order: -1; margin: 0 0 6px; } body.store .store-hero.photo ~ .store-plan > .store-plan-nets { margin: 0 0 4px; } body.home .hx-hero .hx-in > div:first-child { padding-block: 16px; gap: 8px; } }
html[data-theme="large"] body.store .store-hero.photo > img { height: clamp(9rem, 24svh, 16rem); }
html[data-theme="large"] body.home a.hx-or { align-items: flex-start; }

/* ---------- 2449 a store that draws its own first screen (hero.layout "field"; docs/design/sketches/2449r/mx-a3.html) ---------- */
body.store-field { --field: #1f2552; --field-ink: #fbf3e4; font-family: "Alegreya Sans", system-ui, sans-serif; font-size: 1.125rem; }
@media (prefers-color-scheme: dark) { html:not([data-theme="large"]) body.store-field { --field: #151a3d; } }
html[data-theme="large"] body.store-field { --field: #1f2552; }
body.store-field .site-hd { background: var(--field); color: var(--field-ink); border-bottom: 0; --ink: var(--field-ink); --accent: var(--field-ink); }
body.store-field .site-hd a, body.store-field .site-hd summary, body.store-field .site-hd .logo { color: var(--field-ink); }
body.store-field main.mx { max-width: none; padding: 0; }
body.store-field main.mx > :not(.mx-top) { max-width: 1200px; margin-inline: auto; padding-inline: 22px; }
.mx-top { background: var(--field); color: var(--field-ink); }
.mx-ph { height: clamp(15rem, 40svh, 28rem); overflow: hidden; }
.mx-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; display: block; }
.mx-hero { max-width: 1200px; margin: 0 auto; padding: 24px 22px 32px; display: grid; gap: 16px; justify-items: start; }
.mx-hero h1 { font-family: var(--display-fiesta); font-weight: 800; font-size: clamp(2.5rem, 11.4vw, 4.5rem); line-height: .98; letter-spacing: -.01em; margin: 0; text-wrap: balance; color: inherit; }
body.store-field .mx-hero p, body.store-field .mx-hero a { max-width: 28em; margin: 0; color: var(--field-ink); }
.mx-pr { display: flex; align-items: baseline; gap: 12px; }
.mx-pr b { font-family: var(--display-fiesta); font-weight: 800; font-size: 4rem; line-height: 1; }
.mx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 4px; background: var(--field-ink); color: var(--field) !important; font-weight: 700; font-size: 1.125rem; text-decoration: none; width: 100%; max-width: 420px; box-sizing: border-box; text-align: center; }
body.store-field .mx-hero a.mx-btn { color: var(--field); }
.mx-book .mx-btn { background: var(--field); color: var(--field-ink) !important; }
.mx-hero .mx-lk a { text-underline-offset: .18em; }
.mx-book { padding-block: 56px 8px; display: grid; gap: 28px; justify-items: start; }
.mx-book h2, body.store-field .qa h2 { font-family: var(--display-fiesta); font-weight: 800; font-size: clamp(1.875rem, 7vw, 2.75rem); line-height: 1.05; margin: 0; }
.mx-book figure { margin: 0; max-width: 380px; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 30px #0a0c2459; }
.mx-book img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: top; display: block; }
.mx-rows { list-style: none; margin: 48px auto 0; padding: 0; border-top: 1px solid var(--line); }
.mx-rows li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; justify-items: start; }
.mx-rows h3 { font-family: var(--display-fiesta); font-weight: 800; font-size: 1.5rem; line-height: 1.15; margin: 0; }
.mx-rows p { margin: 0; max-width: 34em; color: var(--muted); }
.mx-go { color: var(--ink); font-weight: 700; text-underline-offset: .18em; min-height: var(--tap); display: inline-flex; align-items: center; }
body.store-field .qa { padding-block: 40px 16px; }
body.store-field .qa h2 { font-size: 1.5rem; margin-top: 24px; }
.foot2 .credit { grid-column: 1 / -1; font-size: var(--small); }
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) and (max-height: 520px) {
  .mx-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: min(86svh, 820px); }
  .mx-ph { height: auto; grid-column: 1; grid-row: 1; }
  .mx-ph img { object-position: 50% 92%; }
  .mx-hero { grid-column: 2; align-content: center; padding: 48px clamp(32px, 5vw, 72px); width: 100%; box-sizing: border-box; max-width: 40rem; }
  .mx-hero h1 { font-size: clamp(2.75rem, 5vw, 4.75rem); }
  .mx-book { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 8px 64px; }
  .mx-book h2 { grid-column: 2; grid-row: 1; }
  .mx-book { grid-template-rows: auto auto 1fr; }
  .mx-book figure { grid-column: 1; grid-row: 1 / 4; }
  .mx-book .mx-btn { grid-column: 2; grid-row: 2; align-self: start; }
}
@media (orientation: landscape) and (max-height: 520px) { .mx-hero { padding-block: 12px 8px; gap: 4px; align-content: start; } .mx-hero h1 { font-size: 1.6rem; } .mx-hero .mx-lead { font-size: 1rem; line-height: 1.35; } .mx-pr b { font-size: 2rem; } .mx-btn { min-height: 48px; } .mx-top { min-height: 0; } .mx-ph { height: calc(100svh - 56px); } }
/* the bar on the store's colour: the wordmark and plain text links, no pill, no outlined button */
body.store-field .site-hd .site-larger, body.store-field .site-hd .signin { border: 0; background: none; box-shadow: none; padding-inline: 8px; color: var(--field-ink); font-weight: 500; }

/* ---------- 2449 home below the fold: ruled, numbered type (docs/design/sketches/2449r/home-a3.html, full-home-a3.png) ---------- */
/* the bar: the wordmark and plain text links, no pill, no outlined button */
body.home .site-hd .site-larger, body.home .site-hd .signin { border: 0; background: none; box-shadow: none; color: var(--ink); font-weight: 500; padding-inline: 8px; }
/* the stores, one row each: name, line, price; the colour dot stays, the clip-art goes */
body.home .st-sec { padding: 48px 0 8px; }
body.home .st-h { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 6vw, 2.25rem); letter-spacing: -.01em; }
body.home .st-sub { opacity: 1; color: var(--muted); }
/* How it goes: numbered rules, no thumbnails */
body.home .hx-steps { gap: 0; border-top: 1px solid var(--line); }
body.home .hx-st { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
body.home .hx-st .hx-mini { display: none; }
body.home .hx-st > div:last-child { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
body.home .hx-sn { grid-row: 1 / span 2; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--accent); }
body.home .hx-st b { font-size: 1.125rem; }
@media (min-width: 760px) { body.home .hx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 0; } body.home .hx-st { border-top: 1px solid var(--line); border-bottom: 0; } }
body.home .hx-vision { margin: 14px 0 6px; color: var(--ink); max-width: 30em; }
body.home .hx-sec { padding-block: 40px; }
body.home .hx-price { text-align: start; }
body.home .hx-price a.hx-go { margin-inline: 0; }
/* the arrow stays with the last word: the link is one text run, not a flex row that splits the word from its arrow */
body.home a.hx-or, body.home a.hx-all { display: block; width: fit-content; max-width: 100%; min-height: 0; padding-block: 12px; text-align: start; }
@media (prefers-color-scheme: dark) { html:not([data-theme="large"]) body.store-field .mx-book .mx-btn, html:not([data-theme="large"]) .mx-book .mx-btn { background: #a9b4ff; color: #151a3d !important; } }
html[data-theme="large"] .mx-book .mx-btn { background: #1f2552; }
