/*
Theme Name: Espresso Nest
Version: 1.10.1
Text Domain: espressonest
*/
:root{--ink:#29202b;--plum:#623565;--rule:#d5cdd6}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:18px/1.45 Georgia,serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--plum);text-underline-offset:.16em}
a:focus-visible,summary:focus-visible{outline:2px solid var(--plum);outline-offset:4px}
.shell{width:min(100%,1440px);margin:auto}
.inner{width:90%;margin:auto}
.masthead,.footer{display:flex;justify-content:space-between;align-items:center;gap:20px}
.masthead{min-height:98px}
.brand{font-size:37px;font-weight:700;letter-spacing:-.045em;text-decoration:none;color:var(--ink)}
nav{display:flex;gap:36px}
nav a,.footer a{text-decoration:none;color:var(--ink)}
.mobile-menu{display:none}
.hero{position:relative}
.hero>picture>img{width:100%;aspect-ratio:2.33;object-fit:cover;object-position:center}
.hero-copy{position:absolute;left:2%;bottom:3.5%;background:#fff;width:40%;padding:20px 4% 24px 3%}
h1,h2,h3,p{margin:0}
h1,h2{letter-spacing:-.035em;line-height:1.02}
h1{font-size:clamp(41px,4.25vw,66px)}
.hero-copy p{font-size:clamp(20px,2vw,28px);line-height:1.19;margin:14px 0 18px}
.button{display:inline-block;background:var(--plum);color:white;text-decoration:none;border-radius:5px;padding:9px 26px}
.section{padding:18px 0;border-bottom:1px solid var(--rule)}
.section h2{font-size:clamp(27px,3vw,43px);margin-bottom:15px}
.guides,.topics{display:grid;gap:24px}
.guides{grid-template-columns:repeat(3,minmax(0,1fr))}
.topics{grid-template-columns:repeat(4,minmax(0,1fr))}
.card img{width:100%;object-fit:cover;aspect-ratio:2.7;border-radius:5px}
.topics img{aspect-ratio:3.35}
.card h3{font-size:22px;line-height:1.2;margin:5px 0}
.card p{font-size:17px;line-height:1.25}
.footer{min-height:66px;font-size:16px}
@media(max-width:720px){
 body{font-size:16px}
 .masthead{min-height:57px}
 .brand{font-size:25px}
 .masthead>nav{display:none}
 .mobile-menu{display:block;position:relative}
 .mobile-menu summary{cursor:pointer}
 .mobile-menu nav{position:absolute;z-index:2;background:white;right:0;min-width:155px;padding:14px;box-shadow:0 3px 12px #0002;flex-direction:column;gap:12px}
 .hero>picture>img{aspect-ratio:1.48;object-position:69% center}
 .hero-copy{position:static;width:auto;padding:16px 6% 19px}
 h1{font-size:35px}
 .hero-copy p{font-size:18px;margin:9px 0 12px}
 .guides{display:block}
 .card h3{font-size:17px;margin:0 0 3px}
 .card p{font-size:15px}
 .guides .card{display:grid;grid-template-columns:40% 1fr;gap:12px;padding:8px 0;border-bottom:1px solid var(--rule)}
 .guides .card img{aspect-ratio:2}
 .topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .topics img{aspect-ratio:2.25;margin-bottom:4px}
 .footer nav{gap:13px}
}
.hero h1{font-size:clamp(34px,3.57vw,54px)}
@media(max-width:720px){.hero h1{font-size:35px}}
.archive-title,.entry{padding:36px 0 50px}
.archive-title p,.entry-meta{margin:12px 0 24px}
.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.archive-grid img{aspect-ratio:1.7;object-fit:cover;width:100%;margin-bottom:8px}
.archive-grid h2{font-size:29px;margin-bottom:8px}
.entry{max-width:780px}
.entry-cover{margin:20px 0}
.entry-cover img,.entry-body figure img{
 width:min(100%,714px);height:auto;aspect-ratio:16/9;margin-inline:auto;
 object-fit:cover;object-position:center
}
.entry-body p,.entry-body ol,.entry-body ul,.entry-body figure{margin:0 0 1.1em}
.entry-body h2{margin:1.25em 0 .55em;font-size:30px}
.entry-body .entry-illustration img{border-radius:7px}
.entry-back{margin-top:26px}
.pagination{margin-top:22px}
@media(max-width:720px){.archive-grid{grid-template-columns:1fr}.entry,.archive-title{padding:25px 0 34px}}

.masthead .brand{display:inline-flex;align-items:center;gap:10px}
.brand-mark{width:40px;height:40px;flex:none}
@media(max-width:720px){.masthead .brand{gap:7px}.brand-mark{width:30px;height:30px}}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-search{display:flex;align-items:center;gap:5px}
.site-search input,.site-search button{font:inherit;font-size:15px;min-width:0;border:1px solid var(--rule);border-radius:4px;padding:7px 9px}
.site-search input{width:135px;flex:1}
.site-search button{background:var(--plum);color:white;cursor:pointer}
.search-page .search-results-list{max-width:780px}
.search-results-list article{padding:14px 0;border-bottom:1px solid var(--rule)}
.search-results-list h2{font-size:26px;margin-bottom:7px}
.pagination .nav-links{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:1000px){.masthead>nav{gap:16px}}
@media(max-width:720px){
 .masthead{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:6px 0 9px}
 .masthead .mobile-menu{grid-column:2;grid-row:1}
 .header-search{grid-column:1/-1;grid-row:2}
}
.site-copyright{font-size:inherit;white-space:nowrap}
@media(max-width:450px){.footer{gap:7px;flex-wrap:wrap;padding-block:12px}}

.expanded-home {
  --soft-plum: #f3edf4;
  --soft-neutral: #f6f5f2;
}

body.home { background: #fcfbfa; }
body.home .shell { background: white; }
.expanded-home .section { padding-block: 34px; }
.expanded-home .section h2 { margin-bottom: 20px; }
.expanded-home .card h3 a { color: var(--ink); text-decoration: none; }
.expanded-home .card h3 a:hover { text-decoration: underline; }
.expanded-home .guides .card h3 { margin-top: 10px; }
.expanded-home .topics .card h3 { margin-top: 8px; }
.expanded-home .feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--soft-plum);
  margin-block: 36px 0;
}
.expanded-home .feature-image picture { display: block; height: 100%; }
.expanded-home .feature-image img { width: 100%; height: 100%; max-height: 465px; object-fit: cover; }
.expanded-home .feature-copy { align-self: center; padding: clamp(24px, 4vw, 64px); }
.expanded-home .feature-copy .topic-label {
  margin: 0 0 13px;
  font: 600 13px/1.4 system-ui, sans-serif;
  color: var(--plum);
}
.expanded-home .feature h2 { font-size: clamp(34px, 4.1vw, 60px); }
.expanded-home .feature-copy p { margin: 17px 0 22px; max-width: 35ch; }
.expanded-home .feature .button span { margin-left: 8px; }
.expanded-home .reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-block: 32px 40px;
}
.expanded-home .reading-panel { padding: clamp(20px, 3vw, 42px); background: var(--soft-neutral); }
.expanded-home .reading-panel:last-child { background: var(--soft-plum); }
.expanded-home .reading h2 { font-size: clamp(26px, 2.7vw, 40px); margin-bottom: 18px; }
.expanded-home .reading ul { list-style: none; padding: 0; margin: 0; }
.expanded-home .reading li { border-top: 1px solid var(--rule); }
.expanded-home .reading li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
  text-decoration: none;
  color: var(--ink);
}
.expanded-home .reading li a:hover { text-decoration: underline; }
.expanded-home .reading li span { color: var(--plum); }
body.home .footer { border-top: 1px solid var(--rule); }
@media (max-width: 720px) {
  .expanded-home .section { padding-block: 22px; }
  .expanded-home .section h2 { margin-bottom: 12px; }
  .expanded-home .guides .card h3 { margin-top: 0; }
  .expanded-home .topics .card h3 { margin-top: 3px; }
  .expanded-home .feature { display: block; margin-top: 26px; }
  .expanded-home .feature-image img { aspect-ratio: 1.43; height: auto; }
  .expanded-home .feature-copy { padding: 22px; }
  .expanded-home .feature-copy p { margin: 12px 0 17px; }
  .expanded-home .feature-copy .topic-label { margin-bottom: 9px; }
  .expanded-home .reading { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
  .expanded-home .reading li a { padding-block: 11px; }
}

.topic-archive { padding-top: 16px; }
.topic-intro {
  margin-bottom: 32px;
  background: #f3edf4;
}
.topic-intro--illustrated {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
}
.topic-intro-copy { align-self: center; padding: clamp(24px, 4vw, 64px); }
.topic-intro h1 { font-size: clamp(36px, 4.05vw, 61px); }
.topic-intro p { max-width: 42ch; margin: 15px 0 0; line-height: 1.45; }
.topic-intro-image picture { display:block;height:100% }
.topic-intro-image img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.topic-archive .archive-grid { gap: 24px; }
.topic-guide { border: 1px solid var(--rule); border-radius: 8px; overflow: clip; }
.topic-guide-image { display: block; background: #f3edf4; }
.topic-guide-image:focus-visible { outline-offset: -4px; }
.topic-archive .topic-guide-image img { aspect-ratio: 1.65; margin: 0; }
.topic-guide-copy { padding: 17px 19px 20px; }
.topic-guide-copy h2 { font-size: clamp(23px, 2.04vw, 30px); line-height: 1.13; }
.topic-guide-copy h2 a { color: var(--ink); text-decoration: none; }
.topic-guide-copy h2 a:hover { color: var(--plum); text-decoration: underline; }
.topic-guide-copy p { font-size: 17px; line-height: 1.4; }
@media (min-width: 721px) and (max-width: 1040px) {
  body.category .masthead { flex-wrap: wrap; gap: 4px 18px; padding-block: 14px; }
  body.category .masthead .brand { white-space: nowrap; }
}
@media (max-width: 1040px) {
  .topic-archive .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topic-intro--illustrated { display: flex; flex-direction: column; }
  .topic-intro-image img { min-height: 0; height: auto; aspect-ratio: 1.75; }
  .topic-intro { margin-bottom: 22px; }
  .topic-archive .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .topic-guide-copy p { font-size: 16px; }
}


.nest-features {padding-block:clamp(2rem,6vw,5rem);display:grid;gap:clamp(2rem,5vw,4rem)}
.nest-feature {display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(1.5rem,5vw,5rem)}
.nest-feature:nth-child(even)>a {order:1}
.nest-feature img {display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.nest-feature h2 {margin:.45rem 0;font-size:clamp(1.7rem,3vw,3rem);line-height:1.08}
.nest-feature p {max-width:48ch}
.nest-context {font:600 .86rem/1.4 system-ui;color:#673e65}
@media(max-width:700px){.nest-feature{grid-template-columns:1fr;gap:.8rem}.nest-feature:nth-child(even)>a{order:0}}

.footer nav { flex-wrap: wrap; }
