:root { --paper: #F2F2F2; --paper-2: #E8E4E1; --card: #FFFFFF; --ink: #6B4A3A; --muted: #7A6559; --terra: #C95C3F; --terra-dark: #A8472E; --blush: #D8A49F; --line: #DFD8D4;
  --display: "Kanit", "Segoe UI", system-ui, sans-serif; --script: "Caveat Brush", "Segoe Script", cursive; --body: "DM Sans", "Segoe UI", system-ui, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.7; }
a { color: inherit; } img { max-width: 100%; display: block; }
main { overflow-x: clip; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
header.top.scrolled { box-shadow: 0 8px 24px rgba(58,36,28,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; position: relative; }
.top img { height: 38px; width: auto; }
.menu { display: flex; align-items: center; gap: 24px; font-family: var(--display); font-weight: 500; font-size: 15px; }
.menu a { text-decoration: none; position: relative; padding-block: 4px; }
.menu a:not(.cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.menu a:not(.cta):hover, .menu a.on { color: var(--terra); }
.menu a.on::after, .menu a:not(.cta):hover::after { transform: scaleX(1); }
.menu .cta { background: var(--terra); color: #fff; padding: 8px 18px; border-radius: 99px; }
.menu .cta:hover { background: var(--terra-dark); }
.menu a:focus-visible, .burger:focus-visible, .post:focus-visible, .btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .2s ease; }
.top.open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.top.open .burger span:nth-child(2) { opacity: 0; }
.top.open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .top img { height: 32px; } .burger { display: flex; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px clamp(16px, 4vw, 56px) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(58,36,28,.12); font-size: 21px; }
  .top.open .menu { display: flex; animation: menuIn .28s cubic-bezier(.2,.7,.2,1); }
  .menu a { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .menu a:not(.cta)::after { display: none; }
  .menu .cta { margin-top: 16px; border-bottom: 0; text-align: center; padding: 14px; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
}
.crumb { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--muted); padding-top: 34px; }
.crumb a { text-decoration: none; color: var(--terra); }
.art { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.art .ptag { display: inline-block; margin-top: 22px; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.art h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 8px; }
.art .lede { margin-top: 18px; font-size: 20px; color: var(--muted); line-height: 1.5; }
.art .by { margin-top: 18px; font-size: 15px; color: var(--muted); }
.art .by b { color: var(--ink); font-weight: 600; }
.art .cover { margin-top: 30px; aspect-ratio: 16 / 7; border-radius: 22px; }
.art .content { margin-top: 36px; }
.art .content p { margin-top: 18px; }
.art .content h2 { font-size: clamp(25px, 3.4vw, 32px); line-height: 1.15; margin-top: 44px; }
.art .content ul { margin: 18px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.art .content li { padding-left: 24px; position: relative; }
.art .content li::before { content: "–"; position: absolute; left: 0; color: var(--terra); font-weight: 600; }
.art .content em { font-style: normal; color: var(--terra-dark); font-weight: 500; }
.art .tip { margin-top: 36px !important; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--terra); border-radius: 14px; transform: rotate(-.4deg); }
.cta-box { margin-top: 48px; background: var(--terra); color: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 40px); }
.cta-box h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; text-transform: uppercase; }
.cta-box .script { display: block; font-family: var(--script); font-size: clamp(24px, 3vw, 30px); margin-top: 8px; transform: rotate(-2deg); transform-origin: left; }
.btn { display: inline-block; margin-top: 22px; background: #fff; color: var(--terra-dark); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 14px 24px; border-radius: 99px; text-decoration: none; }
.btn:hover { background: var(--paper); }
.more-posts { border-top: 1px solid var(--line); margin-top: 56px; padding-block: 48px 64px; }
.more-posts h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.note { display: inline-block; font-family: var(--script); color: var(--terra); font-size: 26px; line-height: 1; transform: rotate(-3deg); margin-bottom: 4px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.posts.all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.post:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(58,36,28,.14); }
.cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cover svg { display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.post:hover .cover svg { transform: scale(1.05) rotate(-.6deg); }
.cv-terra { background: var(--terra); color: #fff; } .cv-blush { background: var(--blush); color: var(--ink); } .cv-arena { background: #E8E5B5; color: var(--ink); } .cv-ink { background: var(--ink); color: #fff; }
.pbody { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ptag { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.pbody h3 { font-size: 21px; line-height: 1.15; }
.pbody p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.pbody .more { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--terra); }
.blog-head { padding-block: 40px 30px; }
.blog-head h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; }
.blog-head p { margin-top: 14px; max-width: 52ch; color: var(--muted); }
footer { padding-block: 22px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .posts:not(.all) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none; } .posts::-webkit-scrollbar { display: none; } .posts:not(.all) .post { flex: 0 0 84%; scroll-snap-align: start; } .posts.all { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  body { font-size: 17px; }
  .art .cover { aspect-ratio: 4 / 3; border-radius: 16px; }
  .pbody h3 { font-size: 19px; }
  .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
