/* mukeibutsu.biz — design regulation.
 *
 * A white site, fixed. This page declares `color-scheme: light only` and
 * paints every surface an explicit opaque white, so a browser or webview
 * in dark mode has nothing to invert: the background stays white and the
 * ink stays dark. (Dark-mode forcing that ignores the declaration is a
 * client bug; the explicit backgrounds below are the second line.)
 *
 * The layout rules follow the pattern read from MUJI's published design:
 * one gothic family, few sizes, hairline rules instead of boxes, no
 * shadows, no motion, whitespace as the main material, and a single
 * accent colour reserved for the one filled action — the way MUJI's red
 * appears only on small labels and a single strip. Explanation follows
 * the label structure, repeated identically: name, reason, facts, action.
 *
 * The one family is M PLUS 1 (SIL Open Font License 1.1), delivered as
 * an actual webfont from Google Fonts — a name alone would leave the
 * rendering to each device. It is variable (weights 100–900), so the
 * regulation's 400 / 600 both exist. If the font cannot be fetched, the
 * stack falls back through the devices' own gothics; the fixed
 * line-height keeps the layout's skeleton either way.
 */

:root {
  color-scheme: light only;

  --paper: #ffffff;          /* the canvas: white, fixed */
  --kinari: #f4eede;         /* unbleached fill: header band, quiet fills */
  --ink: #3c3c43;            /* body ink — dark grey, never pure black */
  --ink-2: #6d6d72;          /* secondary text */
  --ink-3: #8a877c;          /* the caretaker's room, quieter still */
  --line: #e6e1d3;           /* hairline rules on the paper */
  --line-soft: #efece2;
  --accent: #2f4f2f;         /* the single filled action */
  --accent-deep: #243d24;    /* that action, one step darker (hover) */

  --font: "M PLUS 1", "Helvetica Neue", Arial, "Noto Sans JP",
          "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

/* If a client still tries to restyle for dark mode, hold the same values. */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--paper); color: var(--ink); }
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header: a kinari band, separated by one hairline. No shadow. */
.site-head { background: var(--kinari); border-bottom: 1px solid var(--line); }
.head-in { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; color: var(--ink-2); }
.brand { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 600; }
.langbtn {
  font: inherit; font-size: .875rem; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: .35rem .9rem;
}
.langbtn:hover { background: var(--kinari); }

main section { padding: 2rem 0 .5rem; }
h1 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin: .2rem 0 .8rem; }
.hero-line { font-size: 1.75rem; line-height: 1.45; }
h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin: .2rem 0 .6rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .3rem; }
p { margin: .55rem 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }

/* The hand-outs: not cards. One hairline above each, whitespace between.
   Same structure for every item — name, reason, facts, action. */
ol.take { list-style: none; margin: 0; padding: 0; }
ol.take li { border-top: 1px solid var(--line); padding: 1.5rem 0 .5rem; margin: 0; background: var(--paper); }
ol.take h3 { margin-top: .2rem; }

/* The one filled action on the page. Accent appears here, and nowhere
   else as a fill. It darkens one step on hover; nothing moves. */
.btn {
  display: inline-block; text-decoration: none;
  color: #ffffff; background: var(--accent);
  border-radius: 4px; padding: .55rem 1.1rem; font-size: .95rem;
}
.btn:hover { background: var(--accent-deep); color: #ffffff; }

.note { color: var(--ink-2); font-size: .875rem; margin-left: .5rem; }

/* The gift registration: a form set on the paper, hairline field, the
   same single filled action. */
form.gift { border-top: 1px dashed var(--line); margin-top: 1rem; padding-top: 1rem; }
form.gift label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.gift-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.gift-row input {
  font: inherit; flex: 1 1 14rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink);
}
.gift-row button {
  font: inherit; cursor: pointer; color: #ffffff; background: var(--accent);
  border: none; border-radius: 4px; padding: .55rem 1.1rem; font-size: .95rem;
}
.gift-row button:hover { background: var(--accent-deep); }
form.gift .note { margin-left: 0; }

/* Gift, running in parallel: the opt-in form and the direct code side by side. */
.gift-wrap { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.gift-wrap form.gift { flex: 1 1 18rem; border-top: none; margin-top: 0; padding-top: 0; }
form.gift label.optin {
  display: flex; gap: .5rem; align-items: flex-start;
  font-weight: 400; font-size: .92rem; margin: .7rem 0 .2rem; cursor: pointer;
}
form.gift label.optin input { margin-top: .3rem; }
figure.gift-qr { margin: 0; flex: 0 0 auto; text-align: center; }
figure.gift-qr img {
  display: block; width: 132px; height: 132px;
  border: 1px solid var(--line); background: var(--paper); padding: 6px;
}
figure.gift-qr figcaption { font-size: .8125rem; color: var(--ink-2); max-width: 11rem; margin-top: .4rem; text-align: left; }

/* Facts are a table: two columns, hairlines, no box around them. */
table.spec { width: 100%; border-collapse: collapse; margin: .4rem 0 .8rem; font-size: .95rem; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--line-soft); }
table.spec th { font-weight: 600; width: 34%; color: var(--ink); }
table.spec td { color: var(--ink-2); }

.entry-date { color: var(--ink-2); font-size: .8125rem; margin-bottom: .1rem; }
section.entry h2 { border-bottom: none; padding-bottom: 0; }

.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1rem 0 2rem; color: var(--ink-2); background: var(--paper); }
.mono { font-family: var(--mono); }
.small { font-size: .8125rem; }
ul.plain { list-style: none; margin: .2rem 0 .8rem; padding: 0; }
ul.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }

/* The caretaker's room: present, but quiet. Smaller, muted, set apart by a rule. */
.caretaker {
  margin-top: 1.5rem; border-top: 1px solid var(--line-soft); padding-top: .8rem;
  font-size: .8125rem; line-height: 1.65; color: var(--ink-3);
}
.caretaker summary { cursor: pointer; font-size: .8125rem; letter-spacing: .04em; }
.caretaker-in { padding: .4rem 0 .2rem .9rem; }
.caretaker-in p { margin: .4rem 0; }
.room-fields { list-style: none; margin: .2rem 0 .6rem; padding: 0 0 0 .2rem; }
.room-fields li { margin: .15rem 0; }
.closing { margin-top: 1.5rem; font-size: .875rem; color: var(--ink-3); }

/* The label layer (composition rule, 2026-12-02): after the literary text,
   a paper label in kinari — facts and functions, stated precisely, the way
   a MUJI label states them. No box shadow, no radius; a filled paper strip. */
.label { background: var(--kinari); padding: 1rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.label ul { list-style: none; margin: 0; padding: 0; }
.label li { font-size: .8125rem; line-height: 1.7; color: var(--ink); }
.label li + li { margin-top: .3rem; }

/* Keyboard focus stays visible — the one deliberate departure from the
   reference surface, kept because the hand-outs are tools. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
