/*
Theme Name: Dear Daughter
Theme URI: https://deardaughterbook.com/
Author: Legacy Rising Press
Author URI: https://legacyrisingpress.com/
Description: The custom theme for deardaughterbook.com. Colors, type, and spacing are fixed to the Dear Daughter brand. Words are edited in the block editor; structure stays as designed.
Version: 0.5.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dear-daughter
*/

/* ==========================================================================
   Tokens
   Colors and fonts come from theme.json presets. These short names keep the
   rules below readable. Change a color in theme.json, never here.
   ========================================================================== */

:root{
  --dd-green:var(--wp--preset--color--green);
  --dd-green-deep:var(--wp--preset--color--green-deep);
  --dd-cream:var(--wp--preset--color--cream);
  --dd-blush:var(--wp--preset--color--blush);
  --dd-rose:var(--wp--preset--color--rose);
  --dd-rose-deep:var(--wp--preset--color--rose-deep);
  --dd-rose-light:var(--wp--preset--color--rose-light);
  --dd-ink:var(--wp--preset--color--ink);
  --dd-ink-soft:var(--wp--preset--color--ink-soft);
  --dd-rule:var(--wp--preset--color--rule);

  --dd-display:var(--wp--preset--font-family--fraunces);
  --dd-full:var(--wp--preset--font-family--playfair);
  --dd-body:var(--wp--preset--font-family--georgia);
}

html{-webkit-text-size-adjust:100%;}
body{-webkit-font-smoothing:antialiased;}
img{max-width:100%;height:auto;}

/* Screen reader only text, used for "Opens in a new tab" */
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;
  overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important;
}

/* Focus, visible everywhere */
:focus-visible{outline:2px solid var(--dd-green);outline-offset:3px;}

/* Skip link that WordPress adds automatically */
.skip-link.screen-reader-text:focus{
  clip:auto;clip-path:none;height:auto;width:auto;
  left:1rem;top:1rem;z-index:100000;
  background:var(--dd-green);color:#fff;padding:.8rem 1.2rem;
  font-family:var(--dd-body);font-size:.9rem;text-decoration:none;
}

/* The full-power voice. Only three uses on the whole site:
   "You were becoming.", the truth line, and "Keep becoming." */
.dd-full{
  font-family:var(--dd-full);font-weight:800;font-style:normal;letter-spacing:-.01em;
}

/* ==========================================================================
   Header: site switcher and main navigation
   ========================================================================== */

.dd-switch{
  background:var(--dd-blush);border-bottom:1px solid var(--dd-rule);
}
.dd-switch__list{
  list-style:none;margin:0 auto;padding:.6rem 0;display:flex;flex-wrap:wrap;
  gap:.2rem 1.4rem;justify-content:center;
  font-family:var(--dd-body);font-size:.84rem;line-height:1.6;
}
.dd-switch__list a{color:var(--dd-ink-soft);text-decoration:none;}
.dd-switch__list a:hover,.dd-switch__list a:focus-visible{color:var(--dd-green);}
.dd-switch__list [aria-current="true"]{color:var(--dd-green);}
.dd-switch__list [aria-current="true"]::before{content:"\2022";color:var(--dd-rose-deep);margin-right:.45rem;}

.dd-header{padding-top:1.6rem;}
/* Navigation. WordPress sets link color to inherit with a strong selector,
   so the color is set on the nav itself and the hover state repeats the class. */
.dd-nav,
.dd-footnav{
  font-family:var(--dd-body);font-size:.98rem;color:var(--dd-ink-soft);
}
.dd-nav .wp-block-navigation__container,
.dd-footnav .wp-block-navigation__container{
  gap:.4rem 1.6rem;justify-content:center;
}
.dd-nav .wp-block-navigation-item__content.wp-block-navigation-item__content,
.dd-footnav .wp-block-navigation-item__content.wp-block-navigation-item__content{
  text-decoration:none;padding:.35rem 0;border-bottom:1px solid transparent;
}
.dd-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.dd-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible,
.dd-footnav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.dd-footnav .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible,
.dd-nav .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"]{
  color:var(--dd-green);border-bottom-color:var(--dd-green);
}

/* ==========================================================================
   Main
   Sections sit edge to edge. WordPress must not add space between them,
   or the full-height moments stop being alone on screen.
   ========================================================================== */

.dd-main{margin-top:0;}
.dd-main > .wp-block-post-content > .alignfull,
.dd-main > .alignfull{margin-block-start:0;margin-block-end:0;}
.dd-main .wp-block-post-content{margin-block-start:0;}

/* Buttons */
.wp-block-button__link{transition:background .2s ease,color .2s ease;}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible{
  background:var(--dd-green-deep);
}
.wp-block-button.is-style-outline .wp-block-button__link{
  background:transparent;color:var(--dd-green);border:1px solid var(--dd-green);
  padding:calc(.9rem - 1px) calc(1.6rem - 1px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible{
  background:var(--dd-green);color:#fff;
}
.wp-block-buttons{gap:.9rem;}

/* ==========================================================================
   Full-height moments
   ========================================================================== */

.dd-moment{
  min-height:78vh;min-height:78svh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  padding:5rem 1.6rem !important;
}
/* On phones the moments sit in between: tall enough to stand alone,
   short enough that the scroll does not feel empty. Desktop stays at 78. */
@media (max-width:43.75rem){
  .dd-moment{min-height:60vh;min-height:60svh;padding:3.5rem 1.6rem !important;}
}
.dd-moment > p{
  font-family:var(--dd-display);font-weight:300;
  font-size:var(--wp--preset--font-size--step-4);line-height:1.22;letter-spacing:-.015em;
  margin:0 auto !important;max-width:18ch;color:var(--dd-green);text-wrap:balance;
}

/* ==========================================================================
   Closing section used by the 404 page and Stay close
   ========================================================================== */

.dd-letters{text-align:center;}
.dd-letters:not(.dd-section){padding-top:0;padding-bottom:4.5rem;}
@media (min-width:52rem){.dd-letters:not(.dd-section){padding-bottom:6.5rem;}}
.dd-letters > p{max-width:34rem;margin-left:auto !important;margin-right:auto !important;color:var(--dd-ink-soft);}
.dd-letters .wp-block-buttons{justify-content:center;margin-top:2.2rem;}

/* ==========================================================================
   Home page sections
   ========================================================================== */

.dd-section{padding-top:4.5rem;padding-bottom:4.5rem;}
@media (min-width:52rem){.dd-section{padding-top:6.5rem;padding-bottom:6.5rem;}}

.dd-label{
  font-family:var(--dd-body);font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--dd-rose-deep);margin-bottom:1.5rem !important;line-height:1.75;
}

/* Hero */
.dd-hero{padding-top:5.5rem;padding-bottom:4rem;}
@media (min-width:52rem){.dd-hero{padding-top:7rem;padding-bottom:5rem;}}
.dd-hero .dd-salute{
  font-family:var(--dd-display);font-weight:300;font-style:italic;
  font-size:clamp(2rem,7vw,3rem);line-height:1.15;color:var(--dd-green);margin:0 0 1.6rem;
}
.dd-hero h1{
  font-family:var(--dd-display);font-weight:300;
  font-size:clamp(1.75rem,5.4vw,2.6rem);line-height:1.38;letter-spacing:-.01em;
  color:var(--dd-ink);margin-top:0 !important;margin-bottom:0 !important;max-width:24ch;
}
.dd-hero h1 em{font-style:italic;color:var(--dd-green);}
.dd-hero .dd-meta{
  margin-top:3.2rem !important;padding-top:1.8rem;position:relative;
  color:var(--dd-ink-soft);max-width:34rem;margin-bottom:0;
}
.dd-hero .dd-meta::before{
  content:"";position:absolute;top:0;left:0;width:4.5rem;height:2px;background:var(--dd-green);
}
.dd-hero .dd-date{
  margin-top:.8rem !important;font-size:.76rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--dd-rose-deep);line-height:1.8;
}
.dd-actions{margin-top:2.2rem !important;}

/* Recognition and the release */
.dd-recognition p,.dd-answer p{font-family:var(--dd-display);font-weight:300;}
.dd-recognition p{font-size:var(--wp--preset--font-size--step-1);line-height:1.6;margin-top:0 !important;margin-bottom:1.1rem !important;}
.dd-recognition .dd-quiet{color:var(--dd-ink-soft);}
.dd-answer p{font-size:var(--wp--preset--font-size--step-2);line-height:1.5;margin-top:0 !important;margin-bottom:.5rem !important;}
.dd-answer .dd-becoming{
  font-family:var(--dd-full);font-weight:800;letter-spacing:-.01em;color:var(--dd-green);
}
.dd-answer .dd-welcome{margin-top:2.6rem !important;font-size:var(--wp--preset--font-size--step-1);color:var(--dd-ink-soft);}

/* The truth line opens onto the cover's rose, at full weight */
.dd-moment.dd-truth{background:var(--dd-rose);}
.dd-moment.dd-truth > p{
  font-family:var(--dd-full);font-weight:800;letter-spacing:-.01em;
  color:var(--dd-green-deep);max-width:16ch;line-height:1.1;
}

/* The book */
.dd-prose p{max-width:36rem;}
.dd-prose .dd-pull{
  margin-top:3.5rem !important;padding:2.4rem 0;max-width:var(--wp--style--global--content-size);
  border-top:1px solid var(--dd-rule);border-bottom:1px solid var(--dd-rule);
  font-family:var(--dd-display);font-style:italic;font-weight:300;
  font-size:var(--wp--preset--font-size--step-2);line-height:1.45;color:var(--dd-green);text-align:center;
}

/* The collection, type only until the 2027 cover reveal */
.dd-collection{background:var(--dd-blush);border-top:1px solid var(--dd-rule);border-bottom:1px solid var(--dd-rule);}
.dd-collection h2{font-size:var(--wp--preset--font-size--step-3);line-height:1.25;margin-bottom:1.2rem !important;}
.dd-collection .dd-intro{color:var(--dd-ink-soft);max-width:34rem;margin-bottom:0;}
.dd-books{gap:2.4rem 2rem;margin-top:3.2rem !important;}
.dd-book{border-top:2px solid var(--dd-green);padding-top:1.5rem;}
.dd-book .dd-label{margin-bottom:.5rem !important;}
.dd-book h3{
  font-family:var(--dd-display);font-style:italic;font-weight:400;
  font-size:1.2rem;line-height:1.35;margin:0 0 .6rem !important;color:var(--dd-green);
}
.dd-book p:not(.dd-label){margin:0;color:var(--dd-ink-soft);font-size:.98rem;line-height:1.65;}

/* About Kelli */
.dd-about{padding-top:4.5rem;}
.dd-about-grid{gap:2.4rem 3.6rem;}
.dd-portrait img{width:100%;border-radius:2px;box-shadow:0 14px 34px rgba(35,31,28,.14);}
@media (max-width:781px){.dd-portrait{max-width:22.5rem;margin-left:auto;margin-right:auto;}}
.dd-about h2{
  font-style:italic;font-size:var(--wp--preset--font-size--step-2);line-height:1.35;
  margin:0 0 1.2rem !important;color:var(--dd-green);max-width:20ch;
}
.dd-about p:not(.dd-label){color:var(--dd-ink-soft);max-width:34rem;}
.dd-about .wp-block-buttons{margin-top:1.6rem !important;}

/* Legacy Circles */
.dd-circles{background:var(--dd-green);color:#F3F0E9;}
.dd-circles h2{font-size:var(--wp--preset--font-size--step-3);color:#fff;max-width:22ch;margin-top:0 !important;margin-bottom:1.6rem !important;}
.dd-circles p{color:#D8E2D8;max-width:36rem;}
.dd-circles .dd-quote{
  margin-top:2.6rem !important;margin-bottom:0 !important;padding:0 0 0 1.4rem;border-left:2px solid var(--dd-rose);
}
.dd-circles .dd-quote p{
  font-family:var(--dd-display);font-style:italic;font-size:1.25rem;line-height:1.55;color:#fff;margin:0;
}
.dd-circles .dd-quote cite{
  display:block;margin-top:.8rem;font-family:var(--dd-body);font-style:normal;
  font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;color:var(--dd-rose-light);
}
.dd-circles .wp-block-buttons{margin-top:2.4rem !important;}
.dd-circles .wp-block-button.is-style-outline .wp-block-button__link{color:#fff;border-color:#fff;}
.dd-circles .wp-block-button.is-style-outline .wp-block-button__link:hover,
.dd-circles .wp-block-button.is-style-outline .wp-block-button__link:focus-visible{background:#fff;color:var(--dd-green);}
.dd-circles :focus-visible{outline-color:#fff;}

/* Stay close */
.dd-letters h2{font-size:var(--wp--preset--font-size--step-3);margin-top:0 !important;margin-bottom:1.2rem !important;}
.dd-letters.dd-section .wp-block-buttons{justify-content:center;margin-top:2.2rem !important;}

/* Narrow text that should still start at the left edge of the reading column.
   WordPress centers anything narrower than the column, so these are pinned left. */
.dd-hero h1,
.dd-hero .dd-meta,
.dd-prose > p:not(.dd-pull),
.dd-circles > h2,
.dd-circles > p,
.dd-pagehead > h1,
.dd-pagehead > .dd-standfirst,
.dd-support > h2,
.dd-policy > h2,
.dd-band > p,
.dd-band > h2,
.dd-green-block > h2,
.dd-green-block > p{
  margin-left:max(0px,calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
  margin-right:auto !important;
}
.dd-collection > .dd-intro{
  margin-left:max(0px,calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
  margin-right:auto !important;
}

/* Buttons go full width on small phones, as on the temporary site */
@media (max-width:43.75rem){
  .dd-main .wp-block-buttons{flex-direction:column;align-items:stretch;}
  .dd-main .wp-block-button{width:100%;}
  .dd-main .wp-block-button__link{display:block;width:100%;text-align:center;}
}

/* ==========================================================================
   Inner pages: About Kelli and For organizations
   ========================================================================== */

/* Page head */
.dd-pagehead{padding-top:4.5rem;padding-bottom:1rem;}
.dd-pagehead h1{
  font-family:var(--dd-display);font-weight:300;font-size:var(--wp--preset--font-size--step-3);
  line-height:1.25;color:var(--dd-ink);max-width:22ch;margin-top:0 !important;margin-bottom:0 !important;
}
.dd-pagehead .dd-standfirst{margin-top:1.6rem !important;max-width:36rem;color:var(--dd-ink-soft);font-size:1.05rem;}
.dd-after-head{padding-top:2.5rem;}

/* Portrait beside copy */
.dd-portrait-side{padding-top:3.5rem;padding-bottom:4.5rem;}
.dd-portrait-grid{gap:2.6rem 4rem;}
@media (min-width:52rem){.dd-portrait-grid .dd-portrait{position:sticky;top:3rem;}}
.dd-portrait-copy p{max-width:36rem;}

/* Section headings in prose */
.dd-prose h2{
  font-size:var(--wp--preset--font-size--step-2);line-height:1.3;color:var(--dd-ink);
  margin-top:0 !important;margin-bottom:1.1rem !important;
}

/* Blush bands */
.dd-band{background:var(--dd-blush);border-top:1px solid var(--dd-rule);border-bottom:1px solid var(--dd-rule);}
.dd-band + .dd-band{border-top:0;}
.dd-band p{max-width:36rem;}

/* In her own voice */
.dd-listen h2{font-size:var(--wp--preset--font-size--step-2);line-height:1.3;max-width:22ch;margin-top:0 !important;margin-bottom:1.1rem !important;}
.dd-listen p:not(.dd-label):not(.dd-runtime){color:var(--dd-ink-soft);}
.dd-listen .dd-audio{margin-top:1.6rem !important;}
.dd-listen .dd-audio audio{width:100%;max-width:30rem;display:block;}
.dd-runtime{
  margin-top:.7rem !important;font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;color:var(--dd-rose-deep);
}
.dd-transcript{margin-top:2rem !important;border-top:1px solid var(--dd-rule);border-bottom:1px solid var(--dd-rule);}
.dd-transcript summary{
  cursor:pointer;padding:1rem 0;list-style:none;
  font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;color:var(--dd-green);
}
.dd-transcript summary::-webkit-details-marker{display:none;}
.dd-transcript summary::after{content:"+";float:right;color:var(--dd-rose-deep);}
.dd-transcript[open] summary::after{content:"\2212";}
.dd-transcript p{margin:0 0 1rem !important;color:var(--dd-ink);font-size:1rem;line-height:1.7;}
.dd-transcript p:last-child{padding-bottom:1.2rem;}

/* Recent writing */
.dd-writing .dd-more{color:var(--dd-ink-soft);font-size:.98rem;}

/* Stay close directly after a moment needs less space above it */
.dd-letters-after-moment{padding-top:1rem;}

/* Green blocks: the framework and the inquiry */
.dd-green-block{background:var(--dd-green);color:#F3F0E9;}
.dd-green-block .dd-label{color:var(--dd-rose-light);}
.dd-green-block h2{
  font-size:var(--wp--preset--font-size--step-3);line-height:1.3;color:#fff;max-width:22ch;
  margin-top:0 !important;margin-bottom:1.6rem !important;
}
.dd-green-block p{color:#D8E2D8;max-width:36rem;}
.dd-framework{gap:1.6rem 3rem;margin-top:2.4rem !important;}
.dd-step h3{
  font-family:var(--dd-display);font-weight:400;font-size:1.08rem;line-height:1.4;
  color:#fff;margin:0 0 .3rem !important;
}
.dd-step p{margin:0 !important;font-size:.97rem;color:#C9D8CA;}
.dd-green-block .wp-block-buttons{margin-top:2.4rem !important;}
.dd-green-block .wp-block-button.is-style-outline .wp-block-button__link{color:#fff;border-color:#fff;}
.dd-green-block .wp-block-button.is-style-outline .wp-block-button__link:hover,
.dd-green-block .wp-block-button.is-style-outline .wp-block-button__link:focus-visible{background:#fff;color:var(--dd-green);}
.dd-green-block :focus-visible{outline-color:#fff;}

/* Pathways */
.dd-paths{margin-top:2.4rem !important;}
.dd-path{padding:1.9rem 0;border-top:1px solid var(--dd-rule);margin-top:0 !important;}
.dd-path:first-child{border-top:none;padding-top:0;}
.dd-path h3{
  font-family:var(--dd-display);font-weight:400;font-size:1.2rem;line-height:1.35;
  margin:0 0 .5rem !important;color:var(--dd-green);
}
.dd-path p{margin:0 !important;color:var(--dd-ink-soft);max-width:38rem;}
.dd-tour .dd-note{margin-top:2rem !important;color:var(--dd-ink-soft);font-size:.95rem;}
.dd-tour .wp-block-buttons{margin-top:1.6rem !important;}
.dd-prose .wp-block-buttons{margin-top:2.2rem !important;}

/* Why this work, and why now */
.dd-evidence p:not(.dd-label):not(.dd-source){
  font-family:var(--dd-display);font-weight:300;font-size:var(--wp--preset--font-size--step-1);
  line-height:1.6;max-width:34rem;
}
.dd-evidence .dd-source{font-size:.8rem;letter-spacing:.04em;color:var(--dd-ink-soft);margin-top:2.4rem !important;}

/* Wide room photograph */
.dd-roomshot{margin-top:0 !important;margin-bottom:0 !important;}
.dd-roomshot img{width:100%;max-height:26rem;object-fit:cover;display:block;}

/* Privacy */
.dd-updated{margin-top:1.2rem !important;font-size:.82rem;letter-spacing:.06em;color:var(--dd-ink-soft);}
.dd-policy{padding-top:2.5rem;}
.dd-policy h2{font-size:var(--wp--preset--font-size--step-1);margin-top:2.6rem !important;margin-bottom:.6rem !important;}
.dd-policy > p:first-child{font-size:1.1rem;}

/* Gratitude */
.dd-prose .dd-thanks{font-family:var(--dd-display);font-style:italic;font-weight:300;font-size:var(--wp--preset--font-size--step-1);color:var(--dd-green);margin-top:2rem !important;}
.dd-support h2{font-size:var(--wp--preset--font-size--step-3);line-height:1.25;color:var(--dd-ink);margin-top:0 !important;margin-bottom:1.1rem !important;max-width:22ch;}
.dd-ways{gap:2.4rem 2.6rem;margin-top:2.8rem !important;}
.dd-way{border-top:2px solid var(--dd-green);padding-top:1.5rem;}
.dd-way .dd-label{margin-bottom:.8rem !important;}
.dd-way p:not(.dd-label):not(.dd-filenote){color:var(--dd-ink-soft);max-width:30rem;}
.dd-way .wp-block-buttons{margin-top:1.6rem !important;}
.dd-filenote{margin-top:.6rem !important;font-size:.8rem;letter-spacing:.06em;color:var(--dd-ink-soft);}
.dd-sponsors h2{font-size:var(--wp--preset--font-size--step-2);}
.dd-sponsors .dd-quiet-note{color:var(--dd-ink-soft);font-style:italic;}

/* ==========================================================================
   Footer
   ========================================================================== */

.dd-footer{
  background:var(--dd-blush);border-top:1px solid var(--dd-rule);
  padding-top:5.5rem;padding-bottom:3rem;text-align:center;margin-block-start:0;
}
.dd-sign{
  font-family:var(--dd-display);font-style:italic;font-weight:300;
  font-size:clamp(1.6rem,4.6vw,2.2rem);line-height:1.3;color:var(--dd-green);
  margin-top:0 !important;margin-bottom:3.4rem !important;
}
.dd-sign .dd-full{font-size:1.18em;}
.dd-footnav{margin-bottom:1.4rem;}
.dd-elsewhere .wp-block-navigation__container{gap:.3rem 1.4rem;}
.dd-elsewhere .wp-block-navigation-item__content{font-size:.9rem;}
.dd-fine{
  font-family:var(--dd-body);font-size:.82rem;color:var(--dd-ink-soft);
  line-height:2;margin-top:2rem !important;
}
.dd-fine a{color:var(--dd-ink-soft);}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;scroll-behavior:auto !important;}
}
