/* ---------- tokens ---------- */
:root {
  --ink: #1F1A17;
  --cream: #FBF6EE;
  --paper: #FFFDF9;
  --soft: #3D3632;
  --muted: #6E655E;
  --line: #EFE7DB;
  --pink: #F9A8CF;
  --green: #B8E07E;
  --blue: #9CC3F7;
  --yellow: #F6D55C;
  --orange: #F79A62;
  --lilac: #C9B0F0;
  --hot: #D9468C;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Figtree", "Avenir Next", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hot); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #3B7BE0; outline-offset: 3px; }
[hidden] { display: none !important; }

.d { font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Figtree", system-ui, sans-serif; letter-spacing: -0.03em; font-weight: 800; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.row { display: flex; gap: 14px; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); }
.boot { padding: 40px; font-weight: 600; color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; color: var(--cream); }

/* ---------- shared components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
@media (hover: hover) {
  .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
  .btn.dark:hover { color: var(--cream); }
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--pink); }
.btn.yellow { background: var(--yellow); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.big { min-height: 62px; font-size: 19px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(2deg); }

.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.lift { transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
@media (hover: hover) {
  .lift:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); color: var(--ink); }
}

@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pop { animation: pop 520ms var(--ease) both; }

/* ---------- nav ---------- */
.top { transition: background-color 200ms ease-out; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 30px; }
.logo:hover { color: var(--ink); }
.navlinks { display: flex; gap: 4px; padding: 5px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; }
.navlinks a { padding: 9px 18px; border-radius: 999px; font-weight: 700; }
.navlinks a[aria-current="page"] { background: var(--ink); color: var(--cream); }

@media (max-width: 860px) {
  body:not(.adm-body) { padding-bottom: 88px; }
  .nav-cta { display: none; }
  .navlinks {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    justify-content: space-between; box-shadow: 4px 4px 0 var(--ink);
  }
  .navlinks a { padding: 10px 4px; font-size: 14px; flex: 1; text-align: center; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding-block: 40px 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.greet { height: 42px; padding: 0 20px; font-size: 17px; background: var(--green); transform: rotate(-3deg); }
.hero h1 { font-size: clamp(50px, 7.2vw, 104px); line-height: .95; text-wrap: balance; }
.pill-word { display: inline-block; background: var(--pink); border: 3px solid var(--ink); border-radius: 999px; padding: 0 .2em .08em; transform: rotate(-2deg); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--soft); max-width: 620px; text-wrap: pretty; }

.hero-art { position: relative; height: 560px; }
.blob {
  position: absolute; inset: 40px 20px 40px 60px;
  background: var(--blue); border: 3px solid var(--ink);
  border-radius: 48% 52% 44% 56% / 56% 44% 56% 44%;
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.initials { font-size: 120px; line-height: 1; }
.hero-art .badge { position: absolute; right: 0; top: 70px; height: 46px; padding: 0 20px; font-size: 16px; background: var(--yellow); transform: rotate(7deg); box-shadow: 3px 3px 0 var(--ink); }
.hero-art .now { position: absolute; left: 0; bottom: 50px; transform: rotate(-6deg); background: var(--green); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); padding: 12px 20px; display: flex; flex-direction: column; }
.now small { font-size: 14px; font-weight: 700; }
.now span { font-size: 26px; line-height: 1.1; }
.hero-art .s1 { position: absolute; left: 16px; top: 0; }
.hero-art .s2 { position: absolute; right: 36px; bottom: 8px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 64px; }
  .hero-art { height: 420px; width: 100%; max-width: 460px; }
  .initials { font-size: 90px; }
}

/* ---------- marquee ---------- */
.marquee-wrap { background: var(--ink); color: var(--cream); transform: rotate(-1.5deg); margin-inline: -40px; padding: 18px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: slide 32s linear infinite; }
.marquee-row { display: flex; gap: 40px; padding-right: 40px; align-items: center; }
.marquee-row span { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-top: clamp(72px, 9vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.h2 { font-size: clamp(42px, 5vw, 72px); line-height: 1; }
.section > .h2 { margin-bottom: 28px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; }
.empty { padding: 40px; border: 2px dashed var(--ink); border-radius: 28px; text-align: center; font-size: 19px; font-weight: 600; }

/* ---------- work cards ---------- */
.grid-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.grid-feature > * { grid-column: span 5; }
.grid-feature > :nth-child(4n+1), .grid-feature > :nth-child(4n) { grid-column: span 7; }
.grid-feature > :only-child { grid-column: span 12; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid-3, .grid-feature { grid-template-columns: 1fr; gap: 24px; }
  .grid-feature > * { grid-column: auto !important; }
}

.work-card { display: flex; flex-direction: column; }
.art { height: 300px; border-bottom: 2px solid var(--ink); padding: 32px 40px 0; display: flex; align-items: flex-end; }
.art.has-img { padding: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.browser { width: 100%; height: 100%; background: var(--paper); border: 2px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.dots { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 2px solid var(--ink); }
.dots i { width: 11px; height: 11px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--orange); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--green); }
.browser-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.browser-body b { display: block; height: 15px; width: 45%; background: var(--ink); border-radius: 99px; }
.browser-body span { display: block; height: 9px; width: 75%; background: #D9D2CA; border-radius: 99px; }
.browser-body .ph { height: 90px; border: 2px solid var(--ink); border-radius: 12px; }
.work-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.work-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work-title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; }
.work-sum { color: var(--soft); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) { .art { height: 230px; padding: 24px 24px 0; } }

/* ---------- home boxes ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.duo > :only-child { grid-column: 1 / -1; }
.box { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.box h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-row { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--ink); }
.job-row:first-child { background: #FDF1C4; }
.job-logo { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.job-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.job-main strong { font-size: 19px; }
.job-main span { color: var(--soft); }
.pill-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
@media (max-width: 960px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .job-row .chip { display: none; } }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--yellow); border: 3px solid var(--ink); border-radius: 44px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(36px, 6vw, 80px); display: flex; flex-direction: column; gap: 32px; }
.contact h2 { position: relative; font-size: clamp(50px, 8vw, 112px); line-height: .92; max-width: 980px; text-wrap: balance; }
.contact .deco { position: absolute; right: 6%; top: 50px; transform: rotate(14deg); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 40px 48px; color: var(--soft); font-weight: 600; }
@media (max-width: 760px) { .contact .deco { width: 80px; height: 80px; top: 20px; right: 20px; } }

/* ---------- page heads ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 48px; }
.page-title { font-size: clamp(64px, 10vw, 140px); line-height: .9; }
.page-sub { font-size: clamp(19px, 1.6vw, 22px); color: var(--soft); margin-top: 16px; }
.count { height: 44px; padding: 0 20px; font-size: 17px; background: var(--green); transform: rotate(-3deg); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 48px; }
.filter { min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform 120ms ease-out; display: inline-flex; align-items: center; gap: 10px; }
.filter:active { transform: scale(.96); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--pink); }
.filter i { width: 14px; height: 14px; border-radius: 99px; border: 2px solid currentColor; }

/* ---------- case study ---------- */
.case-hero { border-bottom: 3px solid var(--ink); padding-bottom: 220px; }
.case-hero.no-cover { padding-bottom: 72px; }
.case-head { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 32px; }
.case-title { font-size: clamp(60px, 12vw, 180px); line-height: .88; overflow-wrap: anywhere; }
.case-lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; max-width: 820px; text-wrap: pretty; }
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.meta { padding: 10px 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; display: flex; flex-direction: column; }
.meta small { font-size: 13px; font-weight: 700; color: var(--muted); }
.case-cover { margin-top: -180px; background: var(--paper); border: 3px solid var(--ink); border-radius: 32px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.case-cover img { width: 100%; max-height: 780px; object-fit: cover; }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.story + .block, .block + .story, .block + .block { margin-top: clamp(64px, 8vw, 120px); }
.story-card { border: 2px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.story-card h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.prose { font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 1em; }
.block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.block.text-only { grid-template-columns: minmax(0, 8fr); }
.block-text { display: flex; flex-direction: column; gap: 18px; }
.block-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.block-imgs.n1 { grid-template-columns: 1fr; }
.block-imgs img, .gallery img { width: 100%; border: 2px solid var(--ink); border-radius: 22px; object-fit: cover; }
.block-imgs.n2 img:nth-child(2) { transform: rotate(1.5deg) translateY(24px); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--ink); color: var(--cream); border-radius: 40px; padding: clamp(28px, 4vw, 56px) clamp(28px, 4.5vw, 64px); margin-bottom: 24px; }
.next:hover { color: var(--cream); }
.next small { display: block; color: var(--yellow); font-weight: 700; font-size: 16px; }
.next .d { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.next-ic { width: clamp(64px, 8vw, 110px); height: clamp(64px, 8vw, 110px); border-radius: 99px; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 200ms var(--ease); }
@media (hover: hover) { .next:hover .next-ic { transform: translateX(6px); } }
@media (max-width: 860px) {
  .block, .gallery { grid-template-columns: 1fr; }
  .case-hero { padding-bottom: 120px; }
  .case-cover { margin-top: -90px; border-radius: 22px; }
}

/* ---------- experience ---------- */
.exp-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; padding-top: 56px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.role { border: 2px solid var(--ink); border-radius: 26px; transition: background-color 200ms ease-out, box-shadow 200ms ease-out; }
.role[open] { background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.role summary { display: flex; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.role summary::-webkit-details-marker { display: none; }
.role-logo { width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.role-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.role-main strong { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.role-main span { font-size: 18px; color: var(--soft); }
.role-date { height: 36px; font-size: 15px; }
.plus { width: 46px; height: 46px; flex-shrink: 0; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; }
.plus svg { transition: transform 220ms var(--ease); }
.role[open] .plus svg { transform: rotate(45deg); }
.role-body { padding: 0 26px 26px 106px; display: flex; flex-direction: column; gap: 14px; }
.side-box { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.side-box h2 { font-size: 38px; line-height: 1; }
.side-box .chip { height: 42px; padding: 0 18px; font-size: 16px; }
@media (max-width: 960px) {
  .exp-layout { grid-template-columns: 1fr; }
  .role-body { padding-left: 26px; }
}
@media (max-width: 560px) {
  .role summary { gap: 14px; padding: 18px; flex-wrap: wrap; }
  .role-logo { width: 48px; height: 48px; }
  .role-date { order: 5; }
}

/* ---------- education ---------- */
.edu-list { padding-top: 56px; max-width: 1080px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.result { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--cream); font-weight: 600; }
.grade { min-width: 44px; height: 40px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cert-card { display: flex; flex-direction: column; }
.cert-art { height: 170px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.cert-art img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.cert-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.cert-body h3 { font-size: 28px; line-height: 1.1; }
.cert-body .more { font-size: 17px; margin-top: 6px; }

/* ---------- blog and long writing ---------- */
.posts { display: flex; flex-direction: column; gap: 28px; max-width: 1080px; }
.post-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.post-art { min-height: 240px; border-right: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.post-art img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.post-body h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; }
.post-meta { font-weight: 700; font-size: 15px; color: var(--soft); }
.post-title { font-size: clamp(48px, 8vw, 112px); line-height: .92; max-width: 1100px; text-wrap: balance; overflow-wrap: anywhere; }
.post-cover img { max-height: 620px; }
@media (max-width: 760px) {
  .post-card { grid-template-columns: 1fr; }
  .post-art { min-height: 180px; border-right: 0; border-bottom: 2px solid var(--ink); }
}

.article { max-width: 760px; margin-inline: auto; font-size: 19px; line-height: 1.75; }
.article > * + * { margin-top: 1.1em; }
.article h2, .article h3 { font-family: "Bricolage Grotesque", "Arial Rounded MT Bold", "Figtree", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.12; }
.article h2 { font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); margin-top: 1.8em; }
.article h3 { font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); margin-top: 1.5em; }
.article > :first-child { margin-top: 0; }
.article a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--pink); }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: .35em; }
.article blockquote { margin-inline: 0; padding: 18px 24px; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); font-size: 21px; }
.article figure { margin-inline: 0; }
.article img { width: 100%; border: 2px solid var(--ink); border-radius: 20px; }
.article figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); text-align: center; }
.article code { font-size: .9em; background: var(--line); padding: 2px 6px; border-radius: 6px; }
.article hr { border: 0; height: 2px; background: var(--ink); opacity: .15; margin-block: 2em; }
.article-tags { margin-top: 2em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= admin ================= */
.adm-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: var(--ink); color: var(--cream); padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; font-size: 26px; }
.adm-tag { margin-left: auto; font-family: "Figtree", system-ui, sans-serif; letter-spacing: 0; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--lilac); color: var(--ink); border: 2px solid var(--ink); }
.adm-side nav { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.adm-nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--cream); font-weight: 700; font-size: 16px; cursor: pointer; text-align: left; }
.adm-nav:hover { background: #2E2724; color: var(--cream); }
.adm-nav.on { background: var(--cream); color: var(--ink); }
.adm-nav i { width: 14px; height: 14px; flex-shrink: 0; border-radius: 99px; border: 2px solid currentColor; }
.adm-nav span { flex-grow: 1; }
.adm-nav small { opacity: .7; }
.adm-side hr { border: 0; height: 1px; background: #4A423C; margin: 12px 6px; }
.adm-main { padding: 36px clamp(18px, 3.5vw, 48px) 96px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.adm-hello { font-weight: 700; color: var(--muted); }
.adm-h1 { font-size: clamp(38px, 4.5vw, 60px); line-height: 1; }
.adm-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.tab { min-height: 42px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tab.on { background: var(--ink); color: var(--cream); }
.tab small { opacity: .7; }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 0 14px; min-width: 240px; }
.search input { border: 0; background: transparent; font: inherit; outline: none; width: 100%; color: var(--ink); }
.search:focus-within { box-shadow: 4px 4px 0 var(--blue); }

.adm-list { background: var(--paper); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.adm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 130px 120px 60px 90px 76px; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 2px solid var(--line); cursor: pointer; }
.adm-row:last-child { border-bottom: 0; }
.adm-row:hover { background: var(--cream); }
.adm-thumb { width: 56px; height: 42px; border-radius: 12px; border: 2px solid var(--ink); overflow: hidden; }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-row-title { min-width: 0; display: flex; flex-direction: column; }
.adm-row-title strong, .adm-row-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-row-title strong { font-size: 17px; }
.adm-row-title small { color: var(--muted); font-size: 14px; }
.adm-status { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.adm-status i { width: 10px; height: 10px; border-radius: 99px; border: 2px solid var(--ink); background: var(--yellow); }
.adm-status i.published { background: var(--green); }
.adm-move { display: flex; gap: 4px; }
.adm-empty { padding: 48px; text-align: center; font-weight: 600; color: var(--muted); }

.icon-btn { width: 34px; height: 34px; padding: 0; flex-shrink: 0; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn.lg { width: 46px; height: 46px; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.switch { width: 56px; height: 32px; padding: 0 3px; flex-shrink: 0; border-radius: 99px; border: 2px solid var(--ink); background: var(--line); display: flex; align-items: center; cursor: pointer; transition: background-color 160ms ease-out; }
.switch i { width: 22px; height: 22px; border-radius: 99px; background: var(--paper); border: 2px solid var(--ink); transition: transform 180ms var(--ease); }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(24px); }

.adm-edit-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.adm-edit-head h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
.adm-state { font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.adm-state i { width: 10px; height: 10px; border-radius: 99px; border: 2px solid var(--ink); background: var(--yellow); }
.adm-state i.published { background: var(--green); }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.type { border: 2px solid var(--ink); border-radius: 22px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; background: var(--paper); text-align: left; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.type.on { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.type-ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; }
.type strong { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.type small { color: var(--soft); font-size: 14px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel-title { font-weight: 700; font-size: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > span { font-weight: 700; font-size: 15px; }
.fld > span small, .hint { font-weight: 500; color: var(--muted); font-size: 14px; }
.fld input, .fld textarea, .adm-login input, .tag-input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 14px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 17px; outline: none;
  transition: box-shadow 150ms ease-out;
}
.fld input:focus, .fld textarea:focus, .adm-login input:focus, .tag-input:focus { box-shadow: 4px 4px 0 var(--blue); }
.fld textarea { resize: vertical; line-height: 1.5; min-height: 110px; }
.fld input.big { font-size: 24px; font-weight: 700; min-height: 62px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.chip { cursor: pointer; height: 34px; font-size: 14px; }
.chip.on { background: var(--ink); color: var(--cream); }
.chip.dash { border-style: dashed; }
.drop { height: 190px; border: 2px dashed var(--ink); border-radius: 18px; background: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; text-align: center; padding: 16px; }
.drop.over { background: #FDEAF2; }
.drop small { color: var(--muted); }
.drop-ic { width: 52px; height: 52px; border-radius: 99px; background: var(--pink); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.cover-prev { position: relative; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--cream); }
.cover-prev img { width: 100%; max-height: 320px; object-fit: cover; }
.cover-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); flex-wrap: wrap; }
.file-row strong { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 110px; height: 84px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; }
.thumb-add { width: 110px; height: 84px; border: 2px dashed var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 14px; color: var(--soft); cursor: pointer; }
.sec { border: 2px solid var(--ink); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.sec-head { display: flex; gap: 8px; align-items: center; }
.sec-head input { flex-grow: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font: inherit; font-weight: 700; outline: none; }
.sec textarea { width: 100%; min-height: 120px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font: inherit; resize: vertical; outline: none; line-height: 1.5; }
.sec-head input:focus, .sec textarea:focus { box-shadow: 4px 4px 0 var(--blue); }
.link-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 34px; gap: 8px; align-items: center; }
.result-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) 34px; gap: 8px; align-items: center; }
.link-row input, .result-row input { min-height: 46px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font: inherit; outline: none; width: 100%; }
.link-row input:focus, .result-row input:focus { box-shadow: 4px 4px 0 var(--blue); }
.md-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.md-bar button, .md-img { height: 38px; min-width: 38px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.md-bar button.on { background: var(--ink); color: var(--cream); }
.md-area { width: 100%; min-height: 420px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.7; resize: vertical; outline: none; }
.md-area:focus { box-shadow: 4px 4px 0 var(--blue); }
.md-preview { min-height: 420px; padding: 24px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--cream); }
.md-preview .article { font-size: 17px; margin: 0; }
.add-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: none; border: 0; padding: 4px 0; cursor: pointer; align-self: flex-start; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; padding: 0; border-radius: 99px; border: 2px solid var(--ink); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.setting small { display: block; color: var(--muted); font-size: 14px; }
.slug { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); padding-left: 12px; overflow: hidden; }
.slug span { color: var(--muted); font-weight: 600; }
.slug input { border: 0; outline: none; min-height: 48px; padding: 0 12px 0 2px; font: inherit; background: transparent; width: 100%; }
.slug:focus-within { box-shadow: 4px 4px 0 var(--blue); }
.preview { transform: rotate(-1.5deg); }
.preview .art { height: 180px; }

#toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 17px; box-shadow: 5px 5px 0 var(--green); transition: opacity 200ms ease-out, transform 240ms var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { box-shadow: 5px 5px 0 var(--orange); }

.adm-login { min-height: 100vh; background: var(--blue); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.adm-login::before { content: ""; position: absolute; left: -80px; top: -60px; width: 380px; height: 380px; border-radius: 99px; background: var(--yellow); border: 3px solid var(--ink); }
.adm-login::after { content: ""; position: absolute; right: -40px; bottom: -90px; width: 420px; height: 320px; border-radius: 60px; background: var(--pink); border: 3px solid var(--ink); transform: rotate(-12deg); }
.adm-login-card { position: relative; z-index: 1; width: 100%; max-width: 460px; background: var(--paper); border: 3px solid var(--ink); border-radius: 32px; box-shadow: 10px 10px 0 var(--ink); padding: clamp(28px, 5vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.adm-login-card .adm-brand { padding: 0; }
.adm-login-card h1 { font-size: 48px; line-height: 1; }
.adm-error { color: #B3261E; font-weight: 600; }
.wide { width: 100%; }
.adm-back { text-align: center; font-weight: 600; color: var(--muted); }

@media (max-width: 1100px) {
  .edit-grid { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-row { grid-template-columns: 48px minmax(0, 1fr) 110px 60px 76px; }
  .adm-row .hide-md { display: none; }
}
@media (max-width: 820px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px; }
  .adm-side nav { flex-direction: row; }
  .adm-brand { padding: 0 8px; }
  .adm-brand .adm-tag { display: none; }
  .adm-nav { width: auto; white-space: nowrap; }
  .adm-side hr { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .search { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .types { grid-template-columns: 1fr; }
  .adm-row { grid-template-columns: 44px minmax(0, 1fr) 60px; gap: 12px; }
  .adm-row .hide-sm { display: none; }
}
