/*
Theme Name: On Reserve
Theme URI: https://www.winelawonreserve.com/
Author: Lindsey Zahn P.C.
Description: The Cellar Journal design for On Reserve, a wine law blog by Lindsey A. Zahn, Esq. Magazine front page with the latest post, recent posts, topic tiles, Mailchimp newsletter signup, author section, and links to Lindsey Zahn P.C., Booze.law, and NonAlc.law.
Version: 2.1.2
Requires at least: 6.0
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: onreserve
*/

:root {
  --claret: #6B1F2E;
  --claret-deep: #3E1019;
  --cellar: #2A0C14;
  --copper: #B5643A;
  --copper-ink: #8F4A27;
  --blush: #F7F1F1;
  --blush-2: #FBF8F8;
  --rule: #E6DADB;
  --ink: #1E1A1B;
  --ink-soft: #5A4F51;
  --ink-mute: #6B5F61;
  --display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--claret); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 300; width: auto; height: auto; clip: auto; background: #fff; padding: 0.75rem 1rem; }
.eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--copper-ink); margin: 0 0 0.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 3px; background: var(--claret); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--claret-deep); color: #fff; }
.button--copper { background: var(--copper); }
.button--copper:hover { background: var(--copper-ink); }
.button--evergreen { background: #1F3F2E; }

/* Utility bar */
.utility { background: var(--claret-deep); color: #E8D3D6; font-size: 0.8125rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; flex-wrap: wrap; }
.utility nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: #E9C1A6; }

/* Masthead */
.masthead { padding: 2.25rem var(--gutter) 0; }
.masthead__row { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1.5rem; }
.masthead__date { font-size: 0.8125rem; color: var(--ink-mute); }
.masthead__brand { text-align: center; text-decoration: none; }
.wordmark { display: block; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(3.2rem, 7.5vw, 5.25rem); line-height: 0.95; color: var(--claret); }
.masthead__tag { display: block; margin-top: 0.75rem; font-family: var(--display); font-size: 1.125rem; letter-spacing: 0.04em; color: var(--copper-ink); }
.masthead__cta { justify-self: end; }
.masthead__cta .button { min-height: 44px; font-size: 0.875rem; }
.navbar { max-width: var(--wrap); margin: 1.5rem auto 0; border-top: 3px double var(--copper); border-bottom: 1px solid var(--rule); }
.menu-toggle { display: none; }
.nav { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; align-items: center; min-height: 3.4rem; margin: 0; padding: 0; list-style: none; }
.nav > li { position: relative; }
.nav > li > a, .nav__toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 3.4rem; padding: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; }
.nav > li > a:hover, .nav__toggle:hover { color: var(--claret); }
.nav svg { width: 10px; height: 10px; stroke: var(--claret); fill: none; stroke-width: 1.6; }
.nav__panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 50; min-width: 13.75rem; padding: 0.5rem 1.25rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--claret); box-shadow: 0 18px 40px -20px rgba(42, 12, 20, 0.45); list-style: none; margin: 0; display: none; }
.nav li.is-open > .nav__panel, .nav li:focus-within > .nav__panel { display: block; }
@media (hover: hover) and (min-width: 901px) { .nav li:hover > .nav__panel { display: block; } }
.nav__panel a { display: block; padding: 0.7rem 0; border-bottom: 1px solid #F0E6E7; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.nav__panel li:last-child a { border-bottom: 0; }
.nav__panel a:hover { color: var(--claret); }
/* WordPress menu, if assigned */
.nav .sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 50; min-width: 13.75rem; padding: 0.5rem 1.25rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--claret); list-style: none; margin: 0; display: none; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: block; }
.nav .sub-menu a { display: block; padding: 0.7rem 0; color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .masthead__row { grid-template-columns: 1fr; text-align: center; }
  .masthead__date { display: none; }
  .masthead__cta { justify-self: center; }
  .menu-toggle { display: flex; width: 100%; justify-content: center; align-items: center; gap: 0.5rem; min-height: 3.2rem; border: 0; background: none; font: inherit; font-weight: 600; color: var(--claret); cursor: pointer; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.75rem; }
  .nav.is-open { display: flex; }
  .nav > li { border-top: 1px solid var(--rule); }
  .nav > li > a, .nav__toggle { width: 100%; justify-content: space-between; min-height: 3.2rem; }
  .nav__panel, .nav .sub-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0.5rem 1rem; }
  .nav li:focus-within > .nav__panel { display: none; }
  .nav li.is-open > .nav__panel { display: block; }
}

/* Front page: lead + recent */
.lead-grid { display: flex; flex-wrap: wrap; gap: 3rem; padding-top: 3rem; padding-bottom: 4rem; }
.lead { flex: 999 1 37.5rem; min-width: 0; }
.lead__media { display: block; position: relative; height: 23.75rem; overflow: hidden; background: var(--cellar); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lead__media { height: 15rem; } .utility span { display: none; } .utility .wrap { justify-content: center; } }
.lead__flag { position: absolute; left: 0; bottom: 0; background: var(--claret); color: #fff; padding: 0.6rem 1.1rem; font-family: var(--display); font-style: italic; font-size: 1.25rem; }
.lead h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.08; margin: 0 0 0.85rem; }
.lead h1 a { color: var(--ink); text-decoration: none; }
.lead h1 a:hover { color: var(--claret); }
.lead .eyebrow { margin-top: 1.6rem; }
.lead__dek { font-size: 1.125rem; color: var(--ink-soft); max-width: 45rem; }
.byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--ink-mute); margin: 0; }
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.side { flex: 1 1 18.75rem; min-width: 0; }
.side h2 { font-family: var(--body); font-size: 0.875rem; font-weight: 600; color: var(--copper-ink); margin: 0; padding-bottom: 0.6rem; border-bottom: 2px solid var(--claret); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.side .topic { display: block; font-size: 0.75rem; font-weight: 600; color: var(--copper-ink); text-decoration: none; margin-bottom: 0.25rem; }
.side li > a:not(.topic) { display: block; font-family: var(--display); font-size: 1.125rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.side li > a:not(.topic):hover { color: var(--claret); }
.side time { display: block; font-size: 0.8125rem; color: var(--ink-mute); margin-top: 0.25rem; }
.side__all { display: inline-block; margin-top: 1rem; font-weight: 600; }
.recognized { margin-top: 1.75rem; padding: 1.5rem; background: var(--blush); }
.recognized p:first-child { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--claret); margin: 0 0 0.5rem; }
.recognized p:last-child { margin: 0; font-size: 0.9375rem; color: #4A3F41; }

/* Explore the cellar */
.cellar { background: var(--blush); padding: 4.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0 0 0.4rem; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-head > a { font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(20.6rem, 1fr)); gap: 1.25rem; }
@media (max-width: 720px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; min-height: 14.4rem; padding: 1.6rem 1.5rem 1.5rem; background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: 0 16px 34px -22px rgba(42, 12, 20, 0.5); transform: translateY(-2px); color: var(--ink); }
.tile__badge { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blush); box-shadow: inset 0 0 0 2px var(--copper), inset 0 0 0 6px #fff, inset 0 0 0 7px var(--rule); margin-bottom: 1rem; }
.tile__badge svg { width: 34px; height: 34px; fill: none; stroke: var(--claret); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile__name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.35rem; }
.tile__desc { font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.tile__latest { margin-top: auto; padding-top: 0.9rem; font-size: 0.8125rem; line-height: 1.45; color: var(--copper-ink); }

/* Newsletter */
.newsletter { background: var(--claret); color: #F3DDE0; padding: 4.5rem 0; }
.newsletter .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2.5rem; align-items: center; }
.newsletter .eyebrow { color: #E9C1A6; }
.newsletter h2 { font-style: italic; font-size: clamp(2.2rem, 4vw, 2.75rem); color: #fff; line-height: 1.1; margin: 0 0 0.75rem; }
.newsletter p { margin: 0; }
.signup { display: grid; gap: 0.6rem; }
.signup label { font-size: 0.875rem; font-weight: 600; }
.signup__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 15rem; min-height: 54px; padding: 0 1rem; border: 0; border-radius: 3px; font: inherit; font-size: 1rem; color: var(--ink); }
.signup .button { min-height: 54px; padding: 0 1.6rem; }
.signup__hp { position: absolute; left: -5000px; }
.signup__note { font-size: 0.8125rem; }
.signup__msg { font-size: 0.9375rem; font-weight: 600; color: #fff; min-height: 1.2em; }
.signup__msg.is-error { color: #FFD6C9; }

/* Author */
.author { max-width: 62.5rem; margin: 0 auto; padding: 3.5rem var(--gutter); display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.author img { flex: 0 0 150px; width: 150px; height: 180px; object-fit: cover; object-position: 50% 20%; }
.author > div { flex: 1 1 23.75rem; }
.author h2 { font-size: 1.75rem; margin: 0 0 0.5rem; }
.author p { font-size: 1rem; color: #4A3F41; margin: 0 0 0.85rem; }
.author__links { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9375rem; font-weight: 600; }
.author__links a:first-child { color: #1F3F2E; }

/* Family */
.family { border-top: 1px solid var(--rule); background: var(--blush-2); padding: 3.5rem 0; }
.family h2 { font-size: 1.6rem; margin: 0 0 1.4rem; }
.family__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); gap: 1.25rem; }
.family__card { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: center; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--c); text-decoration: none; }
.family__card img { justify-self: center; width: auto; }
.family__card strong { display: block; font-family: var(--display); font-size: 1.375rem; color: var(--c); }
.family__card span { display: block; font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* Footer */
.site-footer { background: var(--claret-deep); color: #E8D3D6; font-size: 0.8125rem; line-height: 1.6; }
.site-footer .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; display: grid; gap: 1.1rem; }
.site-footer .wordmark { font-size: 2.1rem; color: #fff; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; max-width: 60rem; }
.footer-search { display: flex; gap: 0.5rem; max-width: 26rem; }
.footer-search input { flex: 1; min-height: 44px; padding: 0 0.85rem; border: 0; border-radius: 3px; font: inherit; }
.footer-search button { min-height: 44px; padding: 0 1rem; border: 0; border-radius: 3px; background: var(--copper); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Archive lists */
.page-head { background: var(--blush); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 0; }
.page-head p { margin: 0.75rem 0 0; color: var(--ink-soft); max-width: 45rem; }
.archive { padding-top: 2.5rem; padding-bottom: 4rem; max-width: 52rem; }
.row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.4rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.row time { font-size: 0.875rem; color: var(--ink-mute); padding-top: 0.35rem; }
.row .topic { font-size: 0.8125rem; font-weight: 600; color: var(--copper-ink); text-decoration: none; }
.row h2 { font-size: 1.5rem; margin: 0.2rem 0 0.4rem; }
.row h2 a { color: var(--ink); text-decoration: none; }
.row h2 a:hover { color: var(--claret); }
.row p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .row time { padding: 0; } }
.pagination { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 2rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--claret); border-color: var(--claret); color: #fff; }

/* Single post and pages */
.article-head { max-width: 46rem; margin: 0 auto; padding: 3rem var(--gutter) 1.5rem; text-align: center; }
.article-head .topic { font-size: 0.875rem; font-weight: 600; color: var(--copper-ink); text-decoration: none; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.1; margin: 0.6rem 0 1rem; }
.article-head .byline { justify-content: center; }
.entry { max-width: 44rem; margin: 0 auto; padding: 1rem var(--gutter) 3rem; font-size: 1.125rem; line-height: 1.75; }
.entry h2 { font-size: 1.75rem; margin-top: 2em; }
.entry h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 3px solid var(--copper); font-family: var(--display); font-style: italic; font-size: 1.3rem; }
.entry figure { margin: 2rem 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { text-align: left; border-bottom: 1px solid var(--rule); padding: 0.5rem 0.75rem 0.5rem 0; }
.wp-block-table { overflow-x: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.entry-tags a { font-size: 0.8125rem; padding: 0.3rem 0.75rem; border: 1px solid var(--rule); border-radius: 99px; text-decoration: none; color: var(--ink-soft); }
.disclaimer { font-size: 0.875rem; font-style: italic; color: var(--ink-mute); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.5rem; }
.article-foot { max-width: 44rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; display: grid; gap: 2.5rem; }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 1.25rem; padding: 1.5rem; background: var(--blush); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author-box h2 { font-size: 1.3rem; margin: 0 0 0.35rem; }
.author-box p { margin: 0 0 0.6rem; font-size: 0.9375rem; color: #4A3F41; }
.author-box .links { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 600; font-size: 0.9375rem; margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: block; padding: 1rem 0; border-top: 2px solid var(--claret); text-decoration: none; color: var(--ink); }
.post-nav span { display: block; font-size: 0.8125rem; color: var(--copper-ink); font-weight: 600; }
.post-nav strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }
.related h2 { font-family: var(--body); font-size: 0.875rem; color: var(--copper-ink); }
.related ul { margin: 0; padding-left: 1.2rem; }
.comments { max-width: 44rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; }
.comment-notes { font-size: 0.875rem; color: var(--ink-mute); }

/* FAQs on pages */
.entry details.faq { border-bottom: 1px solid var(--rule); }
.entry details.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1rem 2rem 1rem 0; font-family: var(--body); font-weight: 600; font-size: 1.05rem; }
.entry details.faq summary::-webkit-details-marker { display: none; }
.entry details.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-size: 1.4rem; font-weight: 400; color: var(--copper-ink); }
.entry details.faq[open] summary::after { content: "−"; }
.entry details.faq p { color: var(--ink-soft); margin: 0 0 1rem; }
.entry .lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
