/* Styles for gu-ra.com/blog — articles and the two calculators.
 *
 * Loaded after lp.css and reuses its custom properties, so a change to the
 * palette on the landing page reaches the blog without a second edit. Only the
 * things a long piece of prose needs are defined here: a measure narrow enough
 * to read, and the calculator forms.
 */

/* The landing page header is sticky and full-bleed; the blog one is a thin bar
   with two links, so it is restyled rather than inherited wholesale. */
.blog-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 24px;
}
.blog-home { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.blog-up { font-size: 14px; color: var(--dim); }
.blog-up:hover { color: var(--mint-deep); }

.blog-article,
.blog-index {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}

/* Around 70 characters per line in English, and comfortable for Japanese,
   which sets denser and wants a little more leading. */
.blog-article p,
.blog-article li {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.blog-article h1 {
  font-size: clamp(28px, 4.2vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin: 4px 0 28px;
}
.blog-article h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 46px 0 14px;
}
.blog-article h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.blog-article p { margin: 18px 0; }
.blog-article ul,
.blog-article ol { margin: 18px 0 18px 22px; }
.blog-article li { margin: 8px 0; }
.blog-article strong { font-weight: 700; }
.blog-article a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 3px; }
.blog-article a:hover { color: var(--text); }
.blog-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--surfaceAlt);
  padding: 1px 5px;
  border-radius: 5px;
}
.blog-article blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--mint);
  color: var(--dim);
}
.blog-dates { font-size: 13px; color: var(--faint); margin: 0 0 6px; }

/* sources + disclaimer ------------------------------------------------ */
.blog-sources-h { font-size: 16px !important; margin-top: 52px !important; }
.blog-sources {
  margin: 12px 0 0 20px;
  font-size: 14px;
  color: var(--dim);
  word-break: break-all;
}
.blog-sources li { font-size: 14px; margin: 6px 0; }
.blog-disclaimer {
  margin: 36px 0 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.blog-disclaimer strong { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.blog-disclaimer p { font-size: 14px !important; line-height: 1.7 !important; color: var(--dim); margin: 0 !important; }

/* calculators --------------------------------------------------------- */
.gura-tool {
  margin: 32px 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.gura-tool h2 { font-size: 19px !important; margin: 0 0 4px !important; }
.tool-lead { font-size: 14px !important; color: var(--dim); margin: 0 0 18px !important; }
.tool-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.tool-form-wide { display: block; }
.tool-form label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; }
.tool-form label span { font-size: 13px; color: var(--dim); font-weight: 600; }
.tool-form input,
.tool-form textarea {
  font: inherit;
  font-size: 16px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.tool-form textarea { resize: vertical; line-height: 1.6; }
.tool-form input:focus,
.tool-form textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.tool-form button {
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--mint); color: #06281f;
}
.tool-form-wide button { margin-top: 14px; }
.tool-form button:hover { background: var(--mint-deep); }
.tool-note { font-size: 13px !important; color: var(--faint); margin: 10px 0 0 !important; }
.tool-out {
  margin: 16px 0 0 !important;
  padding: 14px 16px;
  background: var(--surfaceAlt);
  border-radius: 12px;
  font-size: 15px !important;
  line-height: 1.75 !important;
}
.tool-out:empty { display: none; }

/* index --------------------------------------------------------------- */
.blog-index h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin: 4px 0 10px; }
.blog-lead { color: var(--dim); margin-bottom: 34px; }
.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-list li {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.blog-list a { font-size: 19px; font-weight: 700; line-height: 1.45; }
.blog-list a:hover { color: var(--mint-deep); }
/* The index card titles are headings in everything but tag name, so they need
   the same phrase-aware breaking the ja headings get in lp.css — without it
   「そのほとんどは」 broke after 「そのほ」. */
:lang(ja) .blog-list a { word-break: auto-phrase; }
.blog-list time { display: block; font-size: 12px; color: var(--faint); margin: 6px 0 8px; }
.blog-list p { font-size: 15px; color: var(--dim); }

.blog-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--dim);
}

@media (max-width: 640px) {
  .blog-article, .blog-index { padding: 8px 20px 56px; }
  .gura-tool { padding: 20px 18px; }
  .tool-form label { flex: 1 1 100%; }
}
