/* chinarkakutsey.com */
@font-face { font-family: "Inter Display"; font-weight: 900; font-display: swap; src: url("fonts/InterDisplay-Black.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.woff") format("woff"); }
@font-face { font-family: "Code"; font-weight: 700; font-display: swap; src: url("fonts/DejaVuSansMono-Bold.woff") format("woff"); }

:root {
  --ink: #14213d;
  --night: #0d1a3a;
  --muted: #4d5a76;
  --paper: #f6f8fc;
  --line: #dbe2ef;
  --signal: #ffd23f;
  --sky: #1f7fb0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 64ch; }
h1, h2, h3 { font-family: "Inter Display", "Inter", sans-serif; font-weight: 900; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 0.45em; color: var(--night); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.site-head .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.site-head .home { font-weight: 700; text-decoration: none; color: var(--night); }
.site-head nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.site-head nav a { text-decoration: none; color: var(--muted); }
.site-head nav a:hover { color: var(--night); }
@media (max-width: 560px) { .site-head nav { display: none; } }

/* hero: the name, and the name in code */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(3rem, 10vw, 7.2rem); line-height: 0.95; margin-bottom: 26px; }
.code-name { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.code-name li { font-family: "Code", monospace; font-size: clamp(1rem, 2.3vw, 1.45rem); background: var(--night); color: var(--signal); padding: 6px 10px; border-radius: 6px; min-width: 5.6ch; text-align: center; transition: background .3s, color .3s; }
.code-name.decoded li { background: var(--signal); color: var(--night); }
.code-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.code-btn { font: inherit; font-weight: 700; font-size: 0.95rem; background: transparent; color: var(--night); border: 2px solid var(--night); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.code-btn:hover { background: var(--night); color: #fff; }
.code-hint { font-size: 0.95rem; color: var(--muted); margin: 0; }
.tagline { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; margin-top: 30px; max-width: 34ch; }

section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }

/* books */
.book { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; margin-top: 28px; }
.book img { box-shadow: 0 18px 40px rgba(13, 26, 58, 0.25); border-radius: 3px 8px 8px 3px; }
.book .meta { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.8em; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 999px; border: 2px solid var(--night); color: var(--night); }
.btn-solid { background: var(--night); color: #fff; }
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--night); }
.btn-soon, .btn-soon:hover { background: transparent; border: 2px dashed #9fb0d4; color: var(--muted); cursor: default; }
.next { margin-top: 44px; padding: 22px 24px; border: 2px dashed #b9c6de; border-radius: 12px; display: flex; gap: 20px; align-items: center; }
.next img { width: 84px; flex: none; }
.next p { margin: 0; }
@media (max-width: 680px) { .book { grid-template-columns: 1fr; } .book img { max-width: 220px; } .next { flex-direction: column; align-items: flex-start; } }

/* about */
.about p { font-size: 1.12rem; }

/* contact */
.contact .mail { font-family: "Inter Display"; font-weight: 900; font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--night); text-decoration-color: var(--signal); text-decoration-thickness: 4px; text-underline-offset: 6px; overflow-wrap: anywhere; }

.site-foot { padding: 30px 0 40px; font-size: 0.92rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-foot nav { display: flex; gap: 18px; }

.legal { padding: 30px 0 70px; }
.legal h1 { font-size: 2.3rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
