/* Innopublishing — design direction D.
   Headings: Gloock 400. Small text: Gowun Batang 700.
   Square corners, no colour accents, diagonal arrows on action links. */

:root {
  --ink: #000000;
  --muted: #595959;
  --muted-2: #666666;
  --panel: #efefef;
  --slot: #d9dde0;
  --hair: #d0d0d0;
  --hero-ground: #e4dfd9;
  --footer: #1a1a1a;
  --footer-body: #bbbbbb;
  --footer-muted: #8f8f8f;
  --footer-hair: #2b2b2b;
  --pad-x: clamp(20px, 2.5vw, 32px);
  --inset: clamp(8px, 1.2vw, 16px);
  --section-y: clamp(48px, 6vw, 88px);
  --serif: "Gloock", "Noto Serif SC", "Noto Serif TC", Georgia, serif;
  --text: "Gowun Batang", "Noto Serif SC", "Noto Serif TC", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #ffffff;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: 8px; top: -60px;
  padding: 10px 14px; background: var(--ink); color: #fff; z-index: 10;
}
.skip:focus { top: 8px; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0.025em; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* Arrow links */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.arrow svg { flex: none; }
.arrow--lg { gap: 10px; font-family: var(--serif); font-weight: 400; letter-spacing: 0.025em; font-size: clamp(22px, 2vw, 28px); }

/* Header: stays at the top of the window while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; }
.wordmark__en { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: 0.025em; }
.wordmark__zh { font-size: 12px; color: var(--muted-2); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 50vw, 760px);
  padding: var(--pad-x);
  background: var(--hero-ground);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 85% 70%;
}
.hero__meta {
  position: absolute;
  top: var(--pad-x); right: var(--pad-x);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 12px; letter-spacing: 0.04em; color: #3d3a36;
}
.hero__text {
  position: relative;
  margin-top: clamp(40px, 6vw, 96px);
  max-width: 40%;
  min-width: 280px;
  display: flex; flex-direction: column;
  gap: clamp(18px, 1.8vw, 24px);
}
.hero__title { margin: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--serif); font-weight: 400; }
.hero__kicker { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.2; letter-spacing: 0.025em; }
.hero__headline { font-size: clamp(30px, 3.9vw, 56px); line-height: 1.05; letter-spacing: 0.02em; white-space: nowrap; }
.hero__lines { margin: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.7; color: #333333; }
.hero__fig {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: 0.04em; color: #2e2a26;
}

/* Two-column rows: title left, body right */
.row { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.row__head { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.row__body { flex: 2 1 480px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.row__body--wide { max-width: none; }

.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.07; letter-spacing: 0.02em; }
.h2 .sub { display: block; color: var(--muted-2); }
.h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: 0.025em; }
.lead { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: 0.025em; }
.zh-motto { font-size: 14px; letter-spacing: 0.2em; color: var(--muted); }
p { margin: 0; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.facts {
  margin: 0; padding: 16px 0 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
}
.facts li { display: flex; gap: 10px; }
.facts li::before { content: "—"; color: var(--muted); }

/* Grey panels */
.panel-outer { padding-left: var(--inset); padding-right: var(--inset); }
.panel { background: var(--panel); }
.panel__inner {
  max-width: 1408px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 24px);
  display: flex; flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}

.series-index { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; color: var(--muted); }

/* Typographic covers (used until real cover images are added) */
.cover {
  aspect-ratio: 3 / 4;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: var(--cover-bg, #1a1a1a);
  color: var(--cover-fg, #ffffff);
}
.cover__series { font-size: 11px; letter-spacing: 0.04em; opacity: 0.75; }
.cover__title { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.2; letter-spacing: 0.02em; }
.cover__title:lang(zh-Hans) { font-family: "Noto Serif SC", serif; }
.cover__by { font-size: 11px; opacity: 0.75; }
.cover--img { padding: 0; }
.cover--img img { width: 100%; height: 100%; object-fit: cover; }

.stage {
  background: var(--slot);
  display: flex; align-items: flex-end; justify-content: center;
}

/* Featured book */
.featured__stage { aspect-ratio: 16 / 8; position: relative; padding-top: 6%; }
.featured__stage .cover { width: min(28%, 300px); }
.featured__stage .cover__title { font-size: clamp(16px, 1.8vw, 24px); }
.fig-label { position: absolute; right: 16px; bottom: 12px; font-size: 12px; color: #3d454b; }
.featured__row { margin-top: 20px; }
.featured__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.07; letter-spacing: 0.02em; }

/* Card row */
.cards {
  display: flex; flex-wrap: wrap; gap: 40px 32px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.card { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.card:hover { text-decoration: none; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 4px; }
.card__stage { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 8px; padding-top: 7%; }
.card__stage { overflow: hidden; }
.card__stage .cover { width: 46%; min-width: 0; overflow: hidden; padding: 14px; }
.card__stage .cover__title { font-size: 14px; }
.card__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: 0.025em; }
.card__title:lang(zh-Hans) { font-family: "Noto Serif SC", serif; line-height: 1.35; }

/* Title lists */
.list { border-top: 1px solid var(--ink); }
.list__row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.list__row:hover { text-decoration: none; }
.list__row:hover .list__title { text-decoration: underline; text-underline-offset: 4px; }
.list__no { flex: 0 0 36px; font-size: 12px; color: var(--muted); }
.list__title { flex: 3 1 300px; font-size: 20px; line-height: 1.35; font-family: var(--serif); font-weight: 400; }
.list__title:lang(zh-Hans) { font-family: "Noto Serif SC", serif; }
.list__meta { flex: 1 1 160px; font-size: 14px; color: var(--muted); }

/* Publish tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 24px; }
.tile {
  flex: 1 1 280px; min-width: 0; min-height: 260px;
  padding: 24px;
  background: var(--panel);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.tile:hover { text-decoration: none; }
.tile:hover .tile__cta { text-decoration: underline; text-underline-offset: 4px; }
.tile__top { display: flex; flex-direction: column; gap: 8px; }
.tile__desc { max-width: 360px; line-height: 1.5; color: var(--muted); }

.rule-top { border-top: 1px solid var(--hair); padding-top: clamp(40px, 5vw, 64px); }

/* Contact */
.contact { display: flex; flex-direction: row; flex-wrap: wrap; gap: 32px 48px; }
.contact__address { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.form { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.field { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  height: 44px;
  padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent;
  font: inherit; color: var(--ink);
}
.field textarea { height: auto; resize: vertical; }
.button-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0; border: 0; background: transparent;
  font: inherit; color: var(--ink); cursor: pointer;
}
.button-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.form__status { font-size: 14px; color: var(--muted); min-height: 1.6em; }

/* Book page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.book-hero { display: flex; flex-direction: row; flex-wrap: wrap; gap: 40px 48px; }
.book-hero__stage {
  flex: 1 1 360px; min-width: 0;
  min-height: clamp(420px, 44vw, 620px);
  padding: clamp(32px, 4vw, 64px);
  background: var(--slot);
  display: flex; align-items: center; justify-content: center;
}
.book-hero__stage .cover { width: min(100%, 340px); padding: 24px; }
.book-hero__stage .cover__title { font-size: clamp(20px, 2vw, 26px); }
.book-hero__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.book-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: 0.02em; }
.book-title:lang(zh-Hans) { font-family: "Noto Serif SC", serif; line-height: 1.25; letter-spacing: 0.02em; }
.book-authors { font-size: 20px; line-height: 1.4; }
.specs { margin: 0; border-top: 1px solid var(--ink); }
.specs div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.specs dt { flex: 0 0 140px; color: var(--muted); }
.specs dd { margin: 0; flex: 1 1 200px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
.cite { width: 100%; padding: 20px 24px; background: var(--panel); line-height: 1.7; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-body); }
.site-footer .wrap { padding-top: 64px; display: flex; flex-direction: column; gap: 64px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.footer__intro { flex: 2 1 280px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__big { max-width: 320px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.07; letter-spacing: 0.02em; color: #ffffff; }
.footer__col { flex: 1 1 160px; display: flex; flex-direction: column; }
.footer__col h2 { margin: 0; padding-bottom: 8px; font: inherit; color: #ffffff; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--footer-hair);
  padding: 32px 0;
  font-size: 12px; color: var(--footer-muted);
}

/* Phones and narrow tablets */
@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .site-header .wrap { padding-top: 4px; padding-bottom: 4px; }
  .hero { min-height: 0; padding: 0; }
  .hero__text { order: -1; }
  .hero__img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 78% 70%; }
  .hero__text { max-width: none; min-width: 0; margin: 0; padding: 32px var(--pad-x) 28px; }
  .hero__meta, .hero__fig { display: none; }
  .hero__headline { white-space: normal; }
  .featured__stage { aspect-ratio: 4 / 3; }
  .featured__stage .cover { width: 46%; }
  .nav { gap: 0 20px; }
}
