@import url('https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Kosugi+Maru&display=swap');

:root { --font-kosugi: 'Kosugi Maru'; --font-klee: 'Klee One'; }

/* ============================================================
   ivorynook.com  -  a minimal, chrome-less reading nook
   No header bar, no nav, no breadcrumb. Whitespace is the design.
   ============================================================ */

:root {
  --ivory: #f7f3ec;
  --ivory-deep: #efe8dc;
  --paper: #fffdf8;
  --sand: #cda98c;
  --sand-soft: #e3cdb8;
  --sand-deep: #b48d6d;
  --ink: #463f37;
  --ink-soft: #6f655a;
  --ink-faint: #9b9082;
  --rule: #e6dccd;

  --measure: 38rem;          /* ~608px narrow reading column */
  --font-body: var(--font-kosugi), "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-accent: var(--font-klee), var(--font-kosugi), serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ivory);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(205, 169, 140, 0.12), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 0;
  z-index: 20;
}
.skip-link:focus {
  left: 0;
}

a {
  color: var(--sand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- page shell: a single narrow column, lots of air ---------- */
.nook {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.nook-reading {
  max-width: 620px;
}

/* ---------- the only brand mark: a tiny text wordmark ---------- */
.wordmark-top {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.wordmark-link {
  font-family: var(--font-accent);
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-decoration: none;
}
.wordmark-link:hover {
  color: var(--sand-deep);
}
.wordmark-knock {
  color: var(--sand);
  margin-right: 0.5em;
  font-size: 1.4em;
  vertical-align: -0.05em;
}

/* ---------- home reading flow ---------- */
.nook-flow {
  display: block;
}

.nook-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  color: var(--sand-deep);
  margin: 0 0 0.9rem;
}

.nook-intro h1 {
  font-weight: 400;
  font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.05rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin: 0 0 1.6rem;
  color: var(--ink);
}

/* gentle lead / cover element (looks complete without the jpg) */
.nook-cover {
  height: 200px;
  border-radius: 20px;
  margin: 0 0 1.9rem;
  background-color: var(--sand-soft);
  background-image:
    linear-gradient(150deg, rgba(255, 253, 248, 0.35), rgba(205, 169, 140, 0.28)),
    url("/images/ivorynook-lead.jpg");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -28px rgba(120, 92, 64, 0.5);
}

.nook-lead {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}
.nook-lead-soft {
  color: var(--ink-faint);
}
.nook-tagline {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--sand-deep);
  margin: 1.6rem 0 0;
}

/* a quiet divider instead of section chrome */
.nook-rule {
  border: 0;
  height: 1.4rem;
  margin: 2.8rem auto;
  width: 100%;
  position: relative;
}
.nook-rule::after {
  content: "·  ·  ·";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.5em;
  color: var(--sand);
  font-size: 0.8rem;
}

h2 {
  font-weight: 400;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.nook-note {
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
}

/* checklist as a soft, unboxed list */
.nook-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nook-checks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.nook-checks li:last-child {
  border-bottom: 0;
}
.nook-checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sand);
}

/* understated FAQ details (home + article) */
.nook-detail {
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0;
}
.nook-detail summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 1.6rem 0.55rem 0;
  position: relative;
  color: var(--ink);
  font-size: 1rem;
}
.nook-detail summary::-webkit-details-marker {
  display: none;
}
.nook-detail summary::after {
  content: "＋";
  position: absolute;
  right: 0.1rem;
  top: 0.5rem;
  color: var(--sand-deep);
  font-size: 0.95rem;
}
.nook-detail[open] summary::after {
  content: "−";
}
.nook-detail p {
  margin: 0.2rem 0 0.9rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* recent notes as a quiet list, not a card grid */
.nook-notes {
  list-style: none;
  counter-reset: note;
  padding: 0;
  margin: 0;
}
.nook-notes li {
  counter-increment: note;
}
.nook-note-link {
  display: block;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.nook-notes li:last-child .nook-note-link {
  border-bottom: 1px solid var(--rule);
}
.nook-note-title {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.nook-note-link::before {
  content: counter(note, decimal-leading-zero);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--sand);
  display: block;
  margin-bottom: 0.4rem;
}
.nook-note-link:hover .nook-note-title {
  color: var(--sand-deep);
}
.nook-note-desc {
  display: block;
  font-size: 0.93rem;
  color: var(--ink-faint);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.nook-note-date {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* ---------- article: a quiet letter ---------- */
.nook-article {
  padding-top: 0.5rem;
}
.nook-article h1 {
  font-weight: 400;
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin: 0 0 1.3rem;
  color: var(--ink);
}
.nook-article-lead {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sand-soft);
}

/* injected content read like a letter */
.nook-letter {
  font-size: 1.02rem;
}
.nook-letter p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}
.nook-letter h2 {
  margin: 2.6rem 0 1rem;
  padding-top: 0.4rem;
}
.nook-letter h3 {
  font-weight: 400;
  font-size: 1.06rem;
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}
.nook-letter a {
  color: var(--sand-deep);
}
.nook-letter blockquote {
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--sand);
  font-family: var(--font-accent);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.85;
}
.nook-letter ul,
.nook-letter ol {
  margin: 0 0 1.6rem;
  padding-left: 0;
  list-style: none;
}
.nook-letter ul li,
.nook-letter ol li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.5rem;
  color: var(--ink-soft);
}
.nook-letter ul li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--sand-soft);
}
.nook-letter ol {
  counter-reset: letter-ol;
}
.nook-letter ol li {
  counter-increment: letter-ol;
}
.nook-letter ol li::before {
  content: counter(letter-ol) ".";
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--sand-deep);
  font-size: 0.9rem;
}
.nook-letter table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0 2rem;
  font-size: 0.95rem;
}
.nook-letter thead th {
  text-align: left;
  font-weight: 400;
  color: var(--sand-deep);
  border-bottom: 1.5px solid var(--sand-soft);
  padding: 0.6rem 0.7rem;
  background: rgba(227, 205, 184, 0.16);
}
.nook-letter tbody td {
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem;
  color: var(--ink-soft);
  vertical-align: top;
}
.nook-letter tbody tr:last-child td {
  border-bottom: 0;
}

.nook-article-faq {
  margin-top: 3rem;
}
.nook-article-faq h2 {
  margin-bottom: 1rem;
}

.nook-sources {
  margin: 2.8rem 0 0;
  padding: 1.3rem 1.4rem;
  background: var(--ivory-deep);
  border-radius: 14px;
}
.nook-sources p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
  line-height: 1.85;
}

/* ---------- footer + end signature ---------- */
.nook-foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.nook-foot-reading {
  border-top: 0;
  margin-top: 3.5rem;
}
.nook-foot-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.nook-foot-disclosure {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 0 0 1.8rem;
}
.wordmark-sign {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.wordmark-sign-name {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.wordmark-sign-note {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ---------- narrow widths: keep it gentle ---------- */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nook {
    padding: 0 1.2rem 4rem;
  }
  .wordmark-top {
    padding: 2.4rem 0 1.8rem;
  }
  .nook-cover {
    height: 150px;
    border-radius: 16px;
  }
  .nook-letter table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
