/* Earth & Fire Japan — one stylesheet, no build step */
:root {
  --bg: #F2EEE6;
  --text: #2B2926;
  --muted: #6B665E;
  --accent: #B5532F;   /* thin lines only (4.3:1 on bg, so not used for small text) */
  --link: #9E4526;     /* links, hover, small headings (5.4:1 on bg) */
  --rule: rgba(43, 41, 38, 0.14);
  --measure: 680px;
  --gutter: 16px;
  --serif: "Noto Serif", "Noto Serif JP", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- links ---------- */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--text); text-decoration-color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--text); color: var(--bg); padding: 6px 10px; z-index: 10; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 18px;
}
.wordmark {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.9;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

/* ---------- content ---------- */
main .wrap { padding-top: 56px; padding-bottom: 80px; }

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  line-height: 1.6;
  color: var(--link);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
  margin-top: 0.8em;
}

h1, h2, h3 { font-weight: 400; line-height: 1.3; color: var(--text); }
h1 { font-size: 1.875rem; margin: 0 0 28px; letter-spacing: 0.005em; }
h2 { font-size: 1.25rem; margin: 48px 0 12px; }
h2 + p, h2 + ul { margin-top: 0; }
p, ul, ol, dl { margin: 0 0 20px; }
ul { padding-left: 1.2em; }
li { margin-bottom: 10px; }
strong { font-weight: 600; }
small, .note { color: var(--muted); font-size: 0.9375rem; }

.lede { font-size: 1.125rem; }

hr {
  border: 0;
  height: 1px;
  width: 48px;
  background: var(--accent);
  margin: 48px 0;
}

.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 13px 26px;
  font-family: var(--serif);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1.4;
}
.button:hover { background: var(--link); border-color: var(--link); color: var(--bg); }
.actions { margin: 36px 0 28px; }

.steps { list-style: none; padding: 0; counter-reset: step; }

/* sources list on Potters & Places */
.sources { font-size: 0.9375rem; color: var(--muted); padding-left: 1.1em; }
.sources a { word-break: break-word; }

/* email template on Request */
.template {
  border-left: 1px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 0 0 28px;
  color: var(--text);
}
.template p { margin: 0 0 8px; }

/* FAQ */
.faq h2 { font-size: 1.125rem; margin-top: 40px; }

/* legal notice table (Japanese) */
.legal { font-family: "Noto Serif JP", "Noto Serif", serif; }
.legal dl { border-top: 1px solid var(--rule); }
.legal dt {
  padding-top: 16px;
  color: var(--link);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}
.legal dd {
  margin: 4px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.placeholder {
  background: #E6D6C4;
  color: var(--text);
  padding: 0 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; }
.site-footer ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer li { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }
.site-footer p { margin: 0; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  h1 { font-size: 2.375rem; }
  h2 { font-size: 1.375rem; }
  main .wrap { padding-top: 88px; padding-bottom: 112px; }
  .site-header .wrap { padding-top: 28px; padding-bottom: 22px; }
}

.h1-sub {
  display: block;
  margin-top: 8px;
  font-family: "Noto Serif JP", "Noto Serif", serif;
  font-size: 1.25rem;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-nav li { margin: 0; }

/* photos (11/7) — mood photos from Unsplash; not items for sale */
.photo { margin: 0 0 32px; }
.photo img { display: block; width: 100%; height: auto; background: #e6e0d4; }
.photo figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.photo figcaption a { color: var(--muted); }
.photo.hero { max-width: 1100px; margin: 0 auto; padding: 0; }
.photo.hero img { aspect-ratio: 16 / 7; object-fit: cover; }
.photo.hero figcaption { padding: 0 var(--gutter); max-width: 680px; margin: 8px auto 0; }
.photo.inline img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .photo.hero img { aspect-ratio: 4 / 3; } }
