/*
Theme Name: Cartas a Tsuki
Version: 1.0
Updated: 2026
*/
@font-face {
  font-family: "Lexend Deca";
  src: url("fonts/LexendDeca.ttf");
}
@font-face {
  font-family: "Prata";
  src: url("fonts/Prata.ttf");
}
@font-face {
  font-family: "Corinthia";
  src: url("fonts/Corinthia.ttf");
} 
/* ============================================================
   1. TOKENS
   ============================================================ */
:root{
  /* palette */
  --tinta:  #0D0D0D;
  --papel:  #FAFAF7;
  --hanko:  #7B392E;
  --matcha: #535C4C;
  --ceniza: #3A3A38;

  /* derived from Matcha over Papel */
  --papel-alt:  #EEEFEB;
  --rule:       #DCDED8;
  --hanko-deep: #693027;
  --selection:  #E7DDD9;

  /* type — Prata for display, Lexend Deca for everything else.
     Change these lines (and the <link> in the HTML) to use other faces. */
  --serif: "Prata", "Iowan Old Style", Georgia, serif;
  --body:  "Lexend Deca", -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
  --ui:    "Lexend Deca", -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* measure */
  --header-h: 70px;
  --measure:  550px;
  --wide:     860px;

  /* the outer box — header, drawer and article all use these, so the
     left/right rules line up into one continuous frame down the page */
  --container:     90%;
  --container-max: 1200px;
}

/* ============================================================
   2. BASE
   ============================================================ */
*{ -webkit-tap-highlight-color: transparent; }

html{
  /* stops the page shifting sideways between short and long pages */
  scrollbar-gutter: stable;

  /* The area revealed when you drag past the top takes its colour from here,
     not from body. Without it you get a pale strip above the header.
     Swap `none` for `auto` on the next line if you'd rather keep the bounce. */
  background: var(--papel);
  overscroll-behavior-y: none;
}

body{
  font-family: var(--body);
  background: var(--papel);
  color: var(--tinta);
  font-size: 16px;
  margin: 0;
}

::selection{ background-color: var(--selection); }

h1,h2,h3,h4{ font-family: var(--serif); font-weight: normal; }
h1{ font-size: 3.85rem; }
h2{ font-size: 2.25rem; }
h3{ font-size: 1.9rem; }
h4{ font-size: 1.6rem; }
p { font-size: 16px; }

img{ max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: 2px solid var(--hanko);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============================================================
   3. HEADER — the compact bar, permanent, fully bordered
   ============================================================ */
.site-header{
  box-sizing: border-box;
  display: flex;
  align-items: center;

  /* Sits inside .site-frame, which owns the side rules. The header only
     needs the rule that separates it from the content. */
  width: 100%;
  height: var(--header-h);
  padding: 0 25px 0 30px;
  background: var(--papel);
  border-bottom: 1px solid var(--rule);
}

/* ── the box everything lives in ──
   One element draws the left and right rules, top to bottom, so they cannot
   break or misalign at the seam between header and article. */
.site-frame{
  box-sizing: border-box;
  width: var(--container);
  max-width: var(--container-max);
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  /* no bottom rule — the side rules run down past the footer to the page end */
}

@media only screen and (max-width: 780px){
  .site-frame{
    border-left: 0;
    border-right: 0;
    width: 100%;
  }
}

/* No backdrop pseudo-element here on purpose. A positioned ::before with
   z-index:-1 paints AFTER its parent's background and borders, so it covered
   the header's own rules. The gutters don't need covering anyway — nothing
   renders outside the container, and the page background is already Papel. */

.branding a{
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.wordmark{
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--tinta);
  line-height: 1;
}
.branding img{ height: 30px; display: block; }

.header-nav{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header-nav ul{
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav li{
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 15px;
  border-right: 1px solid var(--rule);   /* dividers between links */
}
.header-nav li:last-child{ border-right: none; }
.header-nav a{ color: var(--tinta); text-decoration: none; }
.header-nav a:hover{ color: var(--hanko); }
.header-nav a[aria-current="page"]{
  color: var(--hanko);
  border-bottom: 1px solid var(--hanko);
  padding-bottom: 2px;
}

.header-spacer{ flex: 1; }


.icon-button{
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  cursor: pointer;
}
.icon-button svg{ width: 22px; height: 22px; display: block; }
.icon-button:hover{ color: var(--hanko); }

/* the search button lives in the desktop header too, on the right */
.search-button{ display: flex; }

/* ============================================================
   4. SEARCH DRAWER — continues the header box
   ============================================================ */
.search-drawer{
  box-sizing: border-box;
  width: 100%;
  background: var(--papel);
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  /* No borders while closed. A 1px bottom border on a zero-height box still
     occupies 1px, which broke the side rules between header and article. */
  border: 0;

  transition: max-height .2s ease, opacity .2s ease, padding .2s ease;
}
.search-drawer.is-open{
  max-height: 120px;
  opacity: 1;
  padding: 18px 30px;
  border-bottom: 1px solid var(--rule);
}
.search-drawer input{
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  background: var(--papel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 5px 15px;
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--tinta);
  outline: 0;
}
.search-drawer input:focus{ border-color: var(--hanko); }
.search-drawer input::placeholder{ color: var(--matcha); }

/* ============================================================
   5. MENU PANEL
   ============================================================ */
.menu-panel{
  position: fixed;
  inset: 0;
  background: var(--papel);
  z-index: 10000;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.menu-panel.is-open{ visibility: visible; opacity: 1; }

.menu-panel-header{
  display: flex;
  align-items: center;
  position: relative;
  height: var(--header-h);
  padding: 0 25px 0 30px;
  border-bottom: 1px solid var(--rule);
}
.menu-panel-header .icon-button{ display: flex; }
.menu-panel-header .branding{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-panel-body{
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.menu-panel-body a{
  display: block;
  padding: 22px 30px;
  text-decoration: none;
  color: var(--tinta);
  border-bottom: 1px solid var(--rule);
}
.menu-panel-body a:last-child{ border-bottom: 0; }
.menu-panel-body a:hover{ background: var(--papel-alt); }
.menu-panel-body a:hover h2{ color: var(--hanko); }
.menu-panel-body h2{ margin: 0; font-size: 1.95rem; }
.menu-panel-body p{
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--matcha);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* ============================================================
   6. ARTICLE
   ============================================================ */
.article-section{
  width: 100%;
}

.article-header{ text-align: center; padding: 0 10px; }
.article-header h1{
  margin: 0 auto 40px;
  padding-top: 5px;
  max-width: 900px;
  line-height: 1.15;
}

.article-meta{
  width: 90%;
  max-width: var(--measure);
  margin: -10px auto 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.article-meta p{
  color: var(--matcha);
}

.article-header .toptitle {padding-top: 65px;font-size:.78rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--hanko);margin-bottom:0px}


.author-info{ display: flex; align-items: center; }
.author-info img{ width: 42px; height: 42px; border-radius: 50%; }
.author-info p{
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 10px;
}
.meta-info{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--ui);
  margin-top: 10px;
}
.meta-info .time-info{ flex: 1; text-align: left; }
.meta-info .time-info p{ font-size: 0.9rem; margin: 0; }
.meta-info .reading-time{ color: var(--matcha); }
.meta-info .article-tag a{
  font-size: 0.95rem;
  color: var(--hanko);
  text-decoration: none;
}

/* The column is full width; the CHILDREN carry the measure.
   That's what lets .wide and .full break out. */
.content{
  width: 100%;
  margin: 20px 0 50px;
}
.content > *{
  width: 100%;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
.content > .wide{ max-width: var(--wide); }
.content > .full{ max-width: 100%; }

/* ============================================================
   7. CONTENT ELEMENTS
   ============================================================ */
.content p{ margin: 30px auto; line-height: 1.65; word-wrap: break-word; }
.content h2{ margin-top: 45px; line-height: 1.35; }
.content h3{ margin-top: 35px; line-height: 1.35; }

.content a{
  color: var(--hanko);
  text-decoration: none;
  border-bottom: 1px dotted var(--hanko);
}
.content a:hover{ color: var(--hanko-deep); border-bottom-color: var(--hanko-deep); }

.content ul,
.content ol{ padding-left: 22px; }
.content li{ font-size: 16px; line-height: 1.65; margin: 16px 0; }
.content li::marker{ color: var(--hanko); }

.content blockquote{
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--matcha);
  line-height: 1.35;
  text-align: center;
  margin: 50px auto;
  padding: 0;
  border: 0;
}
.content blockquote p{ font-size: inherit; margin: 0 auto; }
.content blockquote::before{ content: "\201C"; }
.content blockquote::after{ content: "\201D"; }
.content blockquote cite{
  display: block;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ceniza);
  margin-top: 14px;
}

.content figure{ margin: 60px auto 50px; }
.content figure img{ display: block; width: 100%; }
.content figure.full{
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.content figcaption{
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--matcha);
  line-height: 1.4;
  margin-top: 10px;
}
.content figure.full figcaption{ padding: 0 25px; }

.figure-block{
  box-sizing: border-box;
  padding: 60px 32px;
  background: var(--papel-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--matcha);
}

.content figure.wide{ text-align: center; }
.content figure.wide img{ margin-left: auto; margin-right: auto; }

.content table{
  border-collapse: collapse;
  border: 1px solid var(--rule);
  font-size: 1rem;
}
.content th,
.content td{
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.content th{
  background: var(--papel-alt);
  font-family: var(--ui);
  font-weight: 600;
}
.content tr:last-child td{ border-bottom: 0; }

.content hr{
  border: 0;
  margin: 50px auto;
  text-align: center;
}
.content hr::before{
  content: "...";
  display: block;
  letter-spacing: 12px;
  font-size: 42px;
  line-height: 0.6;
  color: var(--matcha);
}

.content pre{
  background: var(--papel-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.content code{
  font-family: var(--mono);
  font-size: 0.95em;
  background: var(--papel-alt);
  border-radius: 3px;
  padding: 2px 6px;
}
.content pre code{ background: none; padding: 0; }

.content mark{ background: var(--selection); padding: 4px 10px; }

.button{
  display: inline-block;
  background: var(--ceniza);
  color: var(--papel);
  border: 0;
  border-radius: 4px;
  padding: 14px 28px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover{ background: var(--hanko); color: var(--papel); }

.callout{
  box-sizing: border-box;
  background: var(--papel-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--hanko);
  border-radius: 4px;
  padding: 20px 24px;
}
.callout p{
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--matcha);
  margin: 0;
  line-height: 1.5;
}

/* in-article share row, at the end of the piece */
.sharing-options{
  display: flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 45px;
}
.sharing-options a{ border: 0; padding: 0; }
.sharing-options svg{
  width: 24px;
  height: 24px;
  margin-left: 15px;
  fill: var(--matcha);
  display: block;
}
.sharing-options a:hover svg{ fill: var(--hanko); }

.signature, .index-welcome .signature {
  font-family: "Corinthia";
  font-size: 50px;
  font-weight: 500;
  color: var(--hanko);
  margin-top: 40px;
  text-align: center;
}

.like-row{
  width: 90%;
  max-width: var(--measure);
  margin: 30px auto 0;
  text-align: center;
}
.like-row .sl-button{
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hanko);
  background: var(--papel-alt);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 8px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.like-row .sl-button:hover{
  background: var(--hanko);
  color: var(--papel);
}
.like-row .sl-button.liked{
  background: var(--hanko);
  color: var(--papel);
  border-color: var(--hanko);
}

/* ============================================================
   8. RELATED + UP NEXT
   ============================================================ */
.related-posts-section {
  width: 90%;
  max-width: var(--measure);
  margin: 0px auto;
}
.up-next-section{
  width: 90%;
  max-width: var(--measure);
  margin: 0px auto -35px auto;
}
.section-label{
  display: flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--matcha);
  margin: 0 0 10px;
}
.section-label svg{
  width: 15px;
  height: 15px;
  margin-right: 8px;
  stroke: var(--hanko);
  fill: none;
}

.related-posts,
.up-next{
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.related-posts > a,
.up-next > a{
  text-decoration: none;
  color: var(--tinta);
  flex: 1;
  min-width: 0;
}
.related-posts > a:first-child{
  border-right: 1px solid var(--rule);
  padding-right: 24px;
}
.related-posts > a:nth-child(2){ padding-left: 24px; }

.related-posts h3,
.up-next h3{ font-size: 1.75rem; margin: 0 0 6px; line-height: 1.25; }
.related-posts a:hover h3,
.up-next a:hover h3{ color: var(--hanko); }
.related-posts p,
.up-next p{
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--matcha);
  line-height: 1.4;
  margin: 0px 0px 20px 0px;
}

.pill{
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--matcha);
  background: var(--papel-alt);
  border: 1px solid var(--rule);
  border-radius: 15px;
  padding: 6px 12px;
  margin-top: 15px;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
footer{ width: 100%; }

.footer-content{
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.footer-quote{
  width: 90%;
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}
.footer-quote .quote{
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--matcha);
  line-height: 1.35;
  margin: 10px 0;
}
.footer-quote .quote::before{ content: "\201C"; }
.footer-quote .quote::after{ content: "\201D"; }
.footer-quote .quote-by{
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ceniza);
  margin-top: 12px;
  margin-bottom: 20px;
}

.footer-links{
  width: 90%;
  max-width: var(--measure);
  margin: -6px auto 20px;
  padding-top: 45px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.footer-link-group{ margin-left: 60px; }
.footer-group-header{
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--matcha);
}
.footer-link-group ul{ list-style: none; padding: 0; }
.footer-link-group li{ margin: 8px 0; }
.footer-link-group a{
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px dotted var(--tinta);
}
.footer-link-group a:hover{ color: var(--hanko); border-bottom-color: var(--hanko); }

.site-info{
  width: 90%;
  max-width: var(--measure);
  margin: 25px auto;
  text-align: center;
}
.site-info .seal{
  display: inline-block;
  width: 12px;
  height: 12px;
  opacity: 0.6;
  margin-top: 40px;
}
.site-info .copyright{
  max-width: 350px;
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--matcha);
  line-height: 1.35;
  margin: 10px auto;
}

/* ============================================================
   10. MOBILE — icons in, nav and share out
   ============================================================ */
@media only screen and (max-width: 780px){
  .site-header{
    justify-content: space-between;
    padding: 0 16px;
  }
  .icon-button{ display: flex; }
  .header-nav,
  .header-spacer{ display: none; }

  .site-header .branding{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .search-drawer{ padding: 0 16px; }
  .search-drawer.is-open{ padding: 16px; }

  .menu-panel-header{ padding: 0 16px; }
  .menu-panel-body h2{ font-size: 1.75rem; }

  .article-header h1{ font-size: 2.6rem; padding: 40px 10px 15px; line-height: 1.3; }
  .article-header,
  .content{ box-sizing: border-box; padding-left: 25px; padding-right: 25px; }

  .content > .full,
  .content > figure.full{
    width: calc(100% + 50px);
    max-width: none;
    margin-left: -25px;
    margin-right: -25px;
  }

  .author-info{ justify-content: center; }
  .content blockquote{ font-size: 1.6rem; }
  .sharing-options{ font-size: 0.9rem; }

  .related-posts-section,
  .up-next-section{ box-sizing: border-box; padding: 0 25px; }

  .related-posts > a{ flex: 1 1 100%; }
  .related-posts > a:first-child{
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 26px;
    margin-bottom: 26px;
  }
  .related-posts > a:nth-child(2){ padding-left: 0; }

  .footer-links{ grid-template-columns: 1fr 1fr; }
  .footer-link-group{ margin-left: 0; }
  .footer-quote .quote{ font-size: 1.6rem; }
}

/* ============================================================
   11. PRINT + REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}

@media print{
  .site-header,
  .search-drawer,
  .menu-panel,
  .sharing-options,
  .related-posts-section,
  .up-next-section{ display: none !important; }

  body{ background: #fff; }
  .site-frame{ border: 0; width: 100%; }
  .content a{ border-bottom: 0; color: var(--tinta); }
}


/* ============================================================
   12. SUBSCRIBE FORM — two-step slider  (The Newsletter Plugin)
   Fields: nn = name, ne = email, ny = consent. Honeypot: website.
   ============================================================ */
.subscribe{
  width: 90%;
  max-width: var(--measure);
  margin: 50px auto;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.subscribe .eyebrow{
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hanko);
  margin: 0 0 8px;
}
.subscribe h2{ margin: 0 0 10px; line-height: 1.2; }
.subscribe .lede{
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--matcha);
  line-height: 1.5;
  margin: 0 0 28px;
}

/* the sliding window: one step visible at a time */
.sp-slider{ position: relative; overflow: hidden; }
.sp-step{
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.sp-step.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: relative;
}
.sp-step.is-exit{ transform: translateX(-24px); }

.sp-step > label{
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--tinta);
  margin-bottom: 14px;
}

/* input + button on one line */
.sp-row{ display: flex; gap: 10px; }
.sp-row input{
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  height: 52px;
  background: var(--papel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 5px 16px;
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--tinta);
  outline: 0;
}
.sp-row input:focus{ border-color: var(--hanko); }
.sp-row input::placeholder{ color: var(--matcha); opacity: 0.7; }
.sp-row input.is-invalid{ border-color: var(--hanko); }

/* round "next" arrow */
.sp-next{
  flex: none;
  width: 52px; height: 52px;
  background: var(--ceniza);
  color: var(--papel);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-next svg{ width: 20px; height: 20px; }
.sp-next:hover{ background: var(--hanko); }

.sp-submit{
  flex: none;
  height: 52px;
  padding: 0 24px;
  background: var(--ceniza);
  color: var(--papel);
  border: 0;
  border-radius: 4px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.sp-submit:hover{ background: var(--hanko); }
.sp-submit:disabled{ opacity: 0.55; cursor: not-allowed; }

/* error text — hidden until the JS shows it */
.sp-err{
  display: none;
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--hanko);
  margin-top: 10px;
}
.sp-err.show{ display: block; }

/* consent, under the email step */
.sp-consent{
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--ui);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--matcha);
  cursor: pointer;
  margin-top: 16px;
}
/* el texto, forzado a la fuente y tamaño de interfaz (no serif gigante) */
.sp-consent > span{
  font-family: var(--ui);
  font-size: 0.85rem;
  line-height: 1.45;
}
/* checkbox real, estilizado directamente (no depende de .box) */
.sp-consent input[type="checkbox"]{
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  background: var(--papel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transform: translateY(4px);   /* baja el cuadro; sube el número para bajarlo más */
}
.sp-consent input[type="checkbox"]:checked{
  background: var(--hanko);
  border-color: var(--hanko);
}
.sp-consent input[type="checkbox"]:checked::after{
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--papel);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sp-consent input[type="checkbox"]:focus-visible{
  outline: 2px solid var(--hanko);
  outline-offset: 2px;
}
.sp-consent input:focus-visible + .box{ outline: 2px solid var(--hanko); outline-offset: 2px; }
.sp-consent a{ color: var(--hanko); text-decoration: none;}

/* honeypot */
.sp-hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success step */
.sp-done{ text-align: center; padding: 10px 0; }
.sp-check{
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--hanko);
  color: var(--papel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-check svg{ width: 26px; height: 26px; }
.sp-done h3{ margin: 0 0 6px; }
.sp-done p{
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--matcha);
  line-height: 1.5;
  margin: 0;
}

/* progress dots */
.sp-dots{ display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.sp-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rule);
  transition: background .3s ease;
}
.sp-dot.is-active{ background: var(--hanko); }
.sp-dot.is-done{ background: var(--matcha); }

/* a small shake to draw the eye to an error */
@keyframes sp-shake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-5px); }
  75%{ transform: translateX(5px); }
}
.sp-shake{ animation: sp-shake .35s ease; }

@media only screen and (max-width: 780px){
  .subscribe{ box-sizing: border-box; padding-left: 25px; padding-right: 25px; }
  .sp-step > label{ font-size: 1.3rem; }
}
/* footer social icons */
.social-links{
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.social-links a{ display: block; line-height: 0; }
.social-links svg{
  width: 20px;
  height: 20px;
  fill: var(--matcha);
  transition: fill .15s ease;
}
.social-links a:hover svg{ fill: var(--hanko); }

/* footer legal links, divider between them like the header nav */
.footer-legal{
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.footer-legal li{
  padding: 0 15px;
  border-right: 1px solid var(--rule);
}
.footer-legal li:last-child{ border-right: none; }
.footer-legal a{
  position: relative;
  top: -3px;   /* negative = up; try -1 or -2 */
  font-family: var(--ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--matcha);
  text-decoration: none;
}
.footer-legal a:hover{ color: var(--hanko); }

/* ============================================================
   14. COMENTARIOS
   Reutiliza los tokens de :root. En la columna de lectura.
   ============================================================ */
.comments{
  width:90%;
  max-width:var(--measure);
  margin:50px auto;
  padding-top:0px;
  border-top:1px solid var(--rule);
}
.comments-title{ font-family:var(--serif); font-weight:400; font-size:1.8rem; margin:0 0 28px; }
 
/* lista */
.comment-list{ list-style:none; margin:0; padding:0; }
.comment-list ol.children{
  list-style:none; margin:0 0 0 26px; padding:0 0 0 22px;
  border-left:1px solid var(--rule);
}
.comment-body{ padding:22px 0; border-bottom:1px solid var(--rule); }
 
.comment-meta{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.comment-author{ display:flex; align-items:center; gap:12px; }
.comment-author .avatar{ width:44px; height:44px; border-radius:50%; display:block; }
.comment-author .fn{
  font-family:var(--ui); font-weight:700; font-style:normal;
  font-size:.95rem; color:var(--tinta);
}
.comment-author .fn a{ color:var(--tinta); text-decoration:none; }
.comment-author .says{ display:none; }
.comment-metadata{ font-family:var(--ui); font-size:.82rem; color:var(--matcha); }
.comment-metadata a{ color:var(--matcha); text-decoration:none; }
.comment-metadata a:hover{ color:var(--hanko); }
 
.comment-content{ font-family:var(--body); font-size:1.05rem; line-height:1.65; color:var(--tinta); }
.comment-content p{ margin:0 0 12px; }
.comment-content p:last-child{ margin-bottom:0; }
.comment-content a{ color:var(--hanko); }
 
.reply{ margin-top:10px; }
.comment-reply-link{
  font-family:var(--ui); font-size:.8rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em;
  color:var(--hanko); text-decoration:none;
}
.comment-reply-link:hover{ color:var(--hanko-deep); }
 
/* respuesta de la autora, resaltada */
.bypostauthor > .comment-body{
  background:var(--papel-alt);
  border-left:3px solid var(--hanko);
  padding-left:18px;
  padding-right:18px;
}
 
/* aviso de moderación */
.comment-awaiting-moderation{
  display:block; font-family:var(--ui); font-size:.82rem; font-style:italic;
  color:var(--matcha); margin-bottom:8px;
}
 
/* ---- formulario ---- */
.comment-respond{ margin-top:44px; }
.comment-reply-title{
  font-family:var(--serif); font-weight:400; font-size:1.6rem; margin:0 0 20px;
}
.comment-reply-title small{ font-family:var(--ui); font-size:.8rem; margin-left:12px; }
.comment-reply-title small a{ color:var(--hanko); }
 
.comment-form{ display:flex; flex-direction:column; gap:18px; }
.comment-form p{ margin:0; }
.comment-form label{
  display:block; font-family:var(--ui); font-size:.9rem; color:var(--tinta); margin-bottom:7px;
}
.comment-form label .req{ color:var(--matcha); font-weight:400; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea{
  box-sizing:border-box; width:100%;
  background:var(--papel-alt); border:1px solid var(--rule); border-radius:4px;
  padding:12px 16px; font-family:var(--ui); font-size:1rem; color:var(--tinta); outline:0;
}
.comment-form input:focus,
.comment-form textarea:focus{ border-color:var(--hanko); }
.comment-form textarea{ resize:vertical; min-height:120px; }
 
.comment-form .form-submit{ margin:0; }
.comment-submit{
  height:50px; padding:0 28px;
  background:var(--ceniza); color:var(--papel);
  border:0; border-radius:4px;
  font-family:var(--ui); font-size:1rem; font-weight:600; cursor:pointer;
}
.comment-submit:hover{ background:var(--hanko); }
 
.comments-closed{ font-family:var(--ui); color:var(--matcha); font-style:italic; }
 
/* nombre + correo lado a lado en escritorio */
@media (min-width:620px){
  .comment-form-author,
  .comment-form-email{ display:inline-block; width:calc(50% - 9px); vertical-align:top; }
  .comment-form-author{ margin-right:14px; }
}
 
@media (max-width:780px){
  .comments{ box-sizing:border-box; padding-left:25px; padding-right:25px; }
}


/* ============================================================
   15. CONTACTO  (una columna, mismo estilo que cartas.php)
   ============================================================ */
.contact{
  width:90%;
  max-width:520px;
  margin:20px auto 50px;
  text-align:center;
}

/* avisos de estado */
.contact-note{
  border:1px solid var(--rule);
  border-radius:4px;
  padding:20px 24px;
  margin-bottom:28px;
  text-align:left;
}
.contact-note.ok{ background:var(--papel-alt); border-left:3px solid var(--matcha); }
.contact-note.err{ background:#F7EFED; border-left:3px solid var(--hanko); }
.contact-note h3{ font-family:var(--serif); font-weight:400; font-size:1.4rem; margin:0 0 6px; }
.contact-note p{ font-family:var(--ui); font-size:.95rem; color:var(--matcha); margin:0; line-height:1.5; }

/* formulario: una columna, 440px centrado */
.contact-form{
  max-width:440px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:left;
}
.contact-field label{ display:block; font-family:var(--ui); font-size:.9rem; color:var(--tinta); margin-bottom:7px; }
.contact-field label .req{ color:var(--hanko); }
.contact-field input,
.contact-field textarea{
  box-sizing:border-box; width:100%;
  background:var(--papel); border:1px solid var(--rule); border-radius:4px;
  padding:5px 16px; font-family:var(--ui); font-size:1rem; color:var(--tinta); outline:0;
}
.contact-field input{ height:50px; }
.contact-field input:focus,
.contact-field textarea:focus{ border-color:var(--hanko); }
.contact-field textarea{ min-height:140px; padding-top:12px; padding-bottom:12px; resize:vertical; }

/* honeypot fuera de pantalla */
.contact-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* botón: idéntico al de cartas */
.contact-submit{
  height:52px;
  background:var(--ceniza); color:var(--papel);
  border:0; border-radius:4px;
  font-family:var(--ui); font-size:1rem; font-weight:600; cursor:pointer;
}
.contact-submit:hover{ background:var(--hanko); }

@media (max-width:680px){
  .contact{ box-sizing:border-box; padding-left:25px; padding-right:25px; }
}

/* formulario de contacto ancho, en dos columnas */
.contact-wide{
  max-width: 700px;   /* más ancho que la columna de lectura */
}
.contact-wide .contact-form{
  max-width: none;    /* quita el tope de 440px para que llene el ancho */
}

.contact-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* la columna izquierda apila nombre + correo */
.contact-col{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* que el mensaje llene todo el alto de su columna */
.contact-field-msg{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-field-msg textarea{
  flex: 1;
}

.contact-submit{ margin-top: 24px; }

/* en móvil vuelve a una sola columna */
@media (max-width: 680px){
  .contact-cols{ grid-template-columns: 1fr; }
}

/* ============================================================
   16. INICIO (index)
   ============================================================ */
.index-welcome{
  text-align: center;
}
.index-welcome p{
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 24px auto;
}
.index-cta{ margin-top: 36px; }

/* lista de cartas cuando ya haya posts */
.index-item{
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.index-item a{ text-decoration: none; color: var(--tinta); display: block; }
.index-item h2{ margin: 0 0 6px; line-height: 1.25; }
.index-item a:hover h2{ color: var(--hanko); }
.index-date{
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--matcha);
  margin: 0 0 10px;
}
.index-excerpt{
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--matcha);
  line-height: 1.5;
  margin: 0;
}