/* ============================================================
   Duqu Reading — stylesheet
   Mood: paper, restraint, whitespace. Cream paper + ink green,
   with vermilion used sparingly. Non-profit feel: no big colour
   blocks, no marketing layout -- closer to a well-printed booklet.
   ============================================================ */

:root {
  --paper:      #f8f6f0;
  --paper-2:    #f2eee4;
  --paper-3:    #e9e3d5;
  --ink:        #23231f;
  --ink-2:      #3f3d37;
  --ink-3:      #6d675c;
  --ink-4:      #9c968a;
  --rule:       #ded7c7;

  --green:      #1e3a2f;   /* ink green: primary */
  --green-soft: #2f5344;
  --accent:     #9a3d2b;   /* vermilion: accent only */

  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;

  --w: 1120px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .015em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* very faint warm glow, avoids a flat wall of colour */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(30,58,47,.045), transparent 46%),
    radial-gradient(circle at 84% 76%, rgba(154,61,43,.035), transparent 50%);
}

.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,246,240,.9);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.brand__mark--sm { width: 30px; height: 30px; font-size: 17px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.35; }

.brand__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .16em;
}

.brand__sub {
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: .1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .08em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, color .25s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink-4); }

.nav__cta {
  color: var(--paper) !important;
  background: var(--green);
  padding: 9px 20px !important;
  border-radius: 3px;
  border-bottom: none !important;
  letter-spacing: .12em;
  transition: background .25s;
}
.nav__cta:hover { background: var(--accent) !important; }

/* ---------- hero ---------- */

.hero { padding: clamp(64px, 11vh, 120px) 0 0; }

.hero .wrap { max-width: 960px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--ink-4);
  margin: 0 0 28px;
}

.hero__title {
  font-size: clamp(44px, 8.4vw, 96px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
  margin: 0 0 36px;
  color: var(--green);
}

.hero__lede {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 33em;
  margin: 0 0 40px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--green-soft);
  border: 1px solid rgba(30,58,47,.22);
  background: rgba(30,58,47,.035);
  padding: 5px 14px;
  border-radius: 2px;
}

.hero__rule {
  height: 1px;
  background: var(--rule);
  margin-top: clamp(48px, 8vh, 80px);
}

/* ---------- illustration plates ---------- */

.plate {
  margin: clamp(32px, 5vh, 48px) 0 0;
}

.plate img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

.plate figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-4);
  line-height: 1.8;
}

.plate--hero { margin-top: clamp(40px, 6vh, 60px); }
.plate--hero img { max-width: 640px; }

.plate--about img { max-width: 560px; }

.plate--shelf {
  margin-top: 0;
  margin-bottom: clamp(30px, 4vh, 42px);
}
.plate--shelf img { max-width: 100%; }

/* spine rule above the pull quote */
.interlude__rule {
  max-width: 620px;
  margin: 0 auto clamp(28px, 4vh, 40px);
  opacity: .9;
}
.interlude__rule img { display: block; width: 100%; height: auto; }

/* ---------- sections ---------- */

.section { padding: clamp(68px, 11vh, 116px) 0; }
.section--tint { background: var(--paper-2); }

.section__label {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--ink-4);
  margin-bottom: 32px;
  font-variant-numeric: tabular-nums;
}

.section__head { margin-bottom: clamp(36px, 5vh, 56px); }
.section__head .section__label { margin-bottom: 22px; }

.display {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 0 0 28px;
  color: var(--green);
}
.display--sm { font-size: clamp(24px, 3.2vw, 32px); }

.prose {
  font-size: 16.5px;
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 20px;
}
.prose--narrow { max-width: 30em; }

.grid-2 {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}
.grid-2 .section__label { margin-bottom: 0; padding-top: 14px; }

.section__body { min-width: 0; }

/* nature-of-project note */
.note {
  margin-top: 34px;
  padding: 22px 26px;
  border-left: 2px solid var(--green);
  background: rgba(30,58,47,.04);
  max-width: 34em;
}

.note__label {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--green-soft);
  margin: 0 0 10px;
}

.note__text {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-3);
  margin: 0;
}

/* ---------- pull quote ---------- */

.interlude {
  padding: clamp(48px, 9vh, 88px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pullquote {
  margin: 0 auto;
  max-width: 26em;
  text-align: center;
}

.pullquote p {
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.95;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--green);
  margin: 0 0 18px;
}

.pullquote cite {
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--ink-4);
}

/* ---------- book list ---------- */

.books {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.book {
  display: flex;
  gap: 22px;
  padding: 30px 32px 34px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  transition: background .3s;
}
.book:hover { background: #f7f2e6; }

.book__no {
  flex: none;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: 4px;
  opacity: .85;
}

.book__body { min-width: 0; }

.book__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 4px;
  line-height: 1.5;
  color: var(--ink);
}

.book__author {
  font-size: 12.5px;
  color: var(--ink-4);
  letter-spacing: .1em;
  margin: 0 0 16px;
}

.book__quote {
  font-size: 15.5px;
  line-height: 2;
  color: var(--green-soft);
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 1px solid rgba(30,58,47,.25);
}

.book__note {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-4);
  margin: 0;
}

/* ---------- selected books ---------- */

/* lighter than .books: rules instead of boxes, quote only, no commentary */
.picks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(30px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}

.pick {
  display: flex;
  gap: 18px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--rule);
}

.pick__no {
  flex: none;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
  opacity: .85;
}

.pick__body { min-width: 0; }

.pick__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 4px;
  line-height: 1.5;
  color: var(--ink);
}

.pick__author {
  font-size: 12.5px;
  color: var(--ink-4);
  letter-spacing: .1em;
  margin: 0 0 14px;
}

.pick__quote {
  font-size: 15px;
  line-height: 2;
  color: var(--green-soft);
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(30,58,47,.25);
}

/* ---------- three pacts ---------- */

.pacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(34px, 5vh, 50px);
}

.pact__num {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .3em;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rule);
}

.pact h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  margin: 0 0 11px;
  color: var(--green);
}

.pact p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-3);
  margin: 0;
}

/* how to take part */
.howto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(44px, 6vh, 64px);
  padding-top: clamp(30px, 4vh, 42px);
  border-top: 1px solid var(--rule);
}

.howto__item { min-width: 0; }

.howto__label {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--ink-4);
  margin: 0 0 12px;
}

.howto__text {
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- log ---------- */

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.log__item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.log__date {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ink-4);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.log__body h3 {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 0 0 8px;
  color: var(--ink);
}

.log__body p {
  font-size: 15px;
  line-height: 2;
  color: var(--ink-3);
  margin: 0;
  max-width: 32em;
}

/* ---------- join ---------- */

.join { background: var(--green); color: var(--paper); }

.join .section__label { color: rgba(248,246,240,.45); }
.join .display { color: var(--paper); }
.join .prose { color: rgba(248,246,240,.72); }

.join__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.join__copy { min-width: 0; }

/* no form -- just a mailto address you can click */
.join__mail {
  border-top: 1px solid rgba(248,246,240,.18);
  padding-top: 22px;
}

.join__mail-label {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: rgba(248,246,240,.45);
  margin: 0 0 14px;
}

.join__mail-addr {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: .01em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(248,246,240,.34);
  padding-bottom: 4px;
  transition: border-color .25s, color .25s;
  word-break: break-all;
}
.join__mail-addr:hover {
  color: #fff;
  border-color: var(--accent);
}

.join__mail-hint {
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: rgba(248,246,240,.45);
  margin: 18px 0 0;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--rule);
  max-width: 46em;
}

.faq__item {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1.7;
  transition: color .2s;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--green); }

/* plus / minus drawn with two rules, no icon font */
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 34px;
  width: 13px;
  height: 1px;
  background: var(--ink-4);
  transition: transform .25s ease, background .2s;
}

.faq__item summary::after { transform: rotate(90deg); }

.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item[open] summary { color: var(--green); }
.faq__item[open] summary::before,
.faq__item[open] summary::after { background: var(--accent); }

.faq__item p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-3);
  max-width: 40em;
}

/* ---------- footer ---------- */

.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: clamp(46px, 7vh, 70px) 0 30px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}

.footer__brand { display: flex; gap: 12px; align-items: flex-start; }

.footer__name {
  font-size: 17px;
  margin: 0;
  letter-spacing: .14em;
  color: var(--ink);
}

.footer__en {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-4);
  margin-left: 4px;
}

.footer__sub {
  font-size: 12px;
  color: var(--ink-4);
  margin: 5px 0 0;
  letter-spacing: .1em;
}

.footer__cols { display: flex; gap: clamp(38px, 6vw, 76px); }

.footer__col h4 {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ink-4);
  font-weight: 400;
  margin: 0 0 13px;
}

.footer__col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__base {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer__base p {
  font-size: 11.5px;
  color: var(--ink-4);
  margin: 0;
  letter-spacing: .05em;
  line-height: 1.9;
}

.footer__copy { flex: none; padding-top: 2px; }

/* footer keeps a three-line digest; the full text lives on disclaimer.html */
.footer__legal {
  flex: 1 1 320px;
  max-width: 40em;
  min-width: 0;
}

.footer__legal p {
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.85;
  letter-spacing: .04em;
}

.footer__legal-more {
  margin-top: 8px !important;
}

.footer__legal-more a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.footer__legal-more a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- disclaimer page ---------- */

.legal { max-width: 46em; }

.legal__item {
  padding: clamp(24px, 4vh, 36px) 0;
  border-bottom: 1px solid var(--rule);
}
.legal__item:first-child { padding-top: 0; }
.legal__item:last-child { border-bottom: none; }

.legal__h {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--green);
  margin: 0 0 14px;
}

.legal__h span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--ink-4);
  margin-top: 6px;
}

.prose--en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-3);
  margin: 12px 0 0;
  max-width: 38em;
}

.legal__meta {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-4);
  margin: clamp(26px, 4vh, 38px) 0 0;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 18px; }
  .grid-2 .section__label { padding-top: 0; }
  .pacts { grid-template-columns: 1fr; gap: 30px; }
  .howto { grid-template-columns: 1fr; gap: 26px; }
  .join__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .books { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .log__item { grid-template-columns: 1fr; gap: 10px; }
  .plate--hero img { max-width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 0; }
  .nav a:not(.nav__cta) { display: none; }
  .brand__sub { display: none; }
  .footer__inner { flex-direction: column; gap: 30px; }
  .join__mail-addr { font-size: 20px; }
  .book { padding: 24px 22px 28px; gap: 16px; }
  .faq__item summary { font-size: 15.5px; padding: 18px 34px 18px 0; }
  .faq__item summary::before,
  .faq__item summary::after { top: 30px; }
  .footer__base { flex-direction: column; gap: 16px; }
  .footer__legal { flex: 1 1 auto; }
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }
