:root {
  --bg-1: #fbf6ec;
  --bg-2: #f6ecd9;
  --surface: #ffffff;
  --surface-border: rgba(20, 45, 66, 0.1);
  --navy: #14314a;
  --accent: #ef7f1e;
  --accent-2: #ffb648;
  --accent-soft: rgba(239, 127, 30, 0.12);
  --gold: #b9822f;
  --text: #16293b;
  --muted: #5c7488;
  --dim: #94a3ae;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); }
.brand-name .accent { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2e1200; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(239, 127, 30, 0.55);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; color: var(--dim); }

/* article */
.article { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.article h1 {
  font-size: clamp(28px, 4.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--navy); margin: 0 0 12px; text-wrap: balance;
}
.meta { font-size: 13px; color: var(--dim); margin-bottom: 26px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.article h2 { font-size: 24px; line-height: 1.25; color: var(--navy); margin: 36px 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
.article h3 { font-size: 19px; color: var(--navy); margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { color: #c2600d; text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--accent); }
.article strong { color: var(--navy); }

.note {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-left: 4px solid var(--accent); border-radius: 12px;
  padding: 14px 18px; margin: 22px 0; font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.article th, .article td { padding: 10px 14px; border-bottom: 1px solid var(--surface-border); text-align: left; }
.article th { color: var(--navy); background: rgba(239, 127, 30, 0.07); }
.article td { font-variant-numeric: tabular-nums; }

.cta {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px;
  padding: 22px 24px; margin: 36px 0 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 10px 30px -18px rgba(20, 49, 74, 0.25);
}
.cta p { margin: 0; color: var(--muted); font-size: 15px; }
.cta strong { display: block; color: var(--navy); font-size: 17px; margin-bottom: 2px; }

.faq { margin-top: 38px; border-top: 1px solid var(--surface-border); padding-top: 6px; }
.faq h3 { font-size: 17px; margin: 22px 0 6px; }
.faq p { color: var(--muted); }

.related { margin-top: 34px; }
.related h2 { font-size: 20px; margin: 0 0 10px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; }

/* blog index */
.blog-head { max-width: 720px; margin: 0 auto 26px; }
.blog-head h1 { font-size: clamp(30px, 5vw, 42px); color: var(--navy); letter-spacing: -0.02em; margin: 0 0 8px; }
.blog-head p { color: var(--muted); margin: 0; }
.posts { max-width: 720px; margin: 0 auto 50px; display: grid; gap: 12px; }
.post {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--surface-border); border-radius: 14px; padding: 16px 20px;
  transition: border-color .15s, transform .15s;
}
.post:hover { border-color: rgba(239, 127, 30, 0.45); transform: translateY(-1px); }
.post h2 { font-size: 18px; color: var(--navy); margin: 0 0 4px; line-height: 1.3; }
.post p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* footer */
.site-footer {
  border-top: 1px solid var(--surface-border); padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--dim); font-size: 13px;
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .brand img { height: 36px; }
  .brand-name { font-size: 16px; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .lead { font-size: 17px; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .post { transition: none; } }
