/* editingstyle.com: Krea's dark system (docs/DESIGN.md "Krea's system"): Tailwind v4 neutrals, one typeface,
   a 4px grid, 16px cards, pill buttons, white-10% borders, no drop shadows. */
@font-face {
  font-family: 'Clypmint Sans';
  src: url('/fonts/ClypmintSans-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --chrome: #000;
  --bg: #0a0a0a;
  --card: #171717;
  --secondary: #262626;
  --muted: #a1a1a1;
  --dim: #737373;
  --text: #fafafa;
  --border: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px 'Clypmint Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; transition: text-decoration-color 150ms var(--ease); }
a:hover { text-decoration-color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 768px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1088px; margin: 0 auto; padding: 0 16px; }
.wrap-h, .more { max-width: 736px; margin-left: auto; margin-right: auto; }

.top { background: var(--chrome); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; max-width: 1088px; }
.home { font: 500 14px/20px 'Clypmint Sans', sans-serif; text-decoration: none; }
.top nav { display: flex; gap: 4px; }
.top nav a { font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; transition: background 150ms var(--ease), color 150ms var(--ease); }
.top nav a:hover, .top nav a[aria-current='page'] { background: var(--secondary); color: var(--text); }

.hero { padding-top: 80px; padding-bottom: 24px; }
h1 { font-size: 60px; line-height: 60px; font-weight: 450; letter-spacing: -0.025em; margin: 0 0 24px; }
h2 { font-size: 36px; line-height: 40px; font-weight: 450; letter-spacing: -0.025em; margin: 0 0 24px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0; }
p { margin: 0 0 16px; }
.answer { font-size: 20px; line-height: 30px; color: #e5e5e5; }
.muted, .crumb { color: var(--muted); }
.crumb { font-size: 13px; line-height: 18px; margin-bottom: 16px; }
.sec { padding-top: 48px; padding-bottom: 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 9999px; background: #fff; color: #000; font: 500 14px/20px 'Clypmint Sans', sans-serif; text-decoration: none; transition: background 150ms var(--ease); }
.btn:hover { background: #e5e5e5; }
.btn.ghost { background: var(--secondary); color: var(--text); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12); }
.btn.ghost:hover { background: #404040; }

.parts, .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.parts li { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.parts b { display: block; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.parts p { font-size: 14px; line-height: 20px; margin: 0 0 8px; }
.parts p:last-child { margin: 0; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--border); font-size: 14px; line-height: 22.75px; color: var(--muted); }
.steps li b { color: var(--text); font-weight: 500; display: block; font-size: 16px; line-height: 24px; margin-bottom: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 9999px; background: var(--secondary); display: grid; place-items: center; font-size: 12px; color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { position: relative; display: block; border-radius: 19px; overflow: hidden; background: var(--card); text-decoration: none; aspect-ratio: 9 / 16; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.card:hover img { transform: scale(1.03); }
.card-txt { position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.card-txt b { display: block; font-size: 16px; line-height: 18.4px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.card-txt span { display: block; font-size: 12px; line-height: 16px; color: #d4d4d4; }
.more { padding-top: 16px; font-size: 14px; }

.types { display: grid; gap: 12px; }
.type { display: grid; grid-template-columns: 160px 1fr; gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; scroll-margin-top: 72px; }
.type img { border-radius: 10px; aspect-ratio: 9 / 16; object-fit: cover; width: 160px; }
.type h2 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: 0; margin: 0 0 8px; }
.type p { font-size: 14px; line-height: 20px; }
.type dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; line-height: 20px; margin: 0 0 16px; }
.type dt { color: var(--dim); }
.type dd { margin: 0; }

.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { font-size: 14px; line-height: 22.75px; color: var(--muted); padding-bottom: 16px; }

.foot { border-top: 1px solid var(--border); background: var(--chrome); margin-top: 64px; }
.foot-in { max-width: 1088px; padding-top: 32px; padding-bottom: 40px; display: grid; gap: 16px; }
.by { display: inline-block; width: 96px; text-decoration: none; }
.foot p { font-size: 13px; line-height: 18px; color: var(--dim); max-width: 560px; margin: 0; }

@media (max-width: 767px) {
  .hero { padding-top: 48px; }
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 32px; }
  .answer { font-size: 18px; line-height: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .type { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; }
  .type img { width: 96px; }
  .top nav a { padding: 8px 6px; font-size: 13px; }
  .home { font-size: 13px; }
}
@media (max-width: 380px) {
  .top nav a:first-child { display: none; }
}
