/* katrinabalestino.com - shared stylesheet
   Sits on top of Pico.css (CDN). Every rule below sets its own colours and
   spacing so the page renders the same with or without Pico, and in light
   mode only. Mobile-first: base = 360px, then 480 / 768 / 1024. */

:root {
  color-scheme: only light;
  --ink: #222222;
  --head: #2b2b2b;
  --black: #1a1a1a;
  --muted: #595959;
  --rule: #d9d9d9;
  --green: #3f7d20;
  --green-dark: #2f6416;
  --green-edge: #5ea03a;
  --green-tint: #e3f0d8;
  --band: #f3f7ee;
  --grey: #e8e8e8;
  --grey-soft: #f1f1f1;
  --beige: #f4ece2;
  --paper: #ffffff;
  --font-body: Gelasio, Georgia, "Times New Roman", serif;
  --font-head: "Fjalla One", Oswald, Impact, "Arial Narrow", sans-serif;

  /* keep Pico on the light palette and on our type */
  --pico-font-family: Gelasio, Georgia, "Times New Roman", serif;
  --pico-font-size: 100%;
  --pico-background-color: #ffffff;
  --pico-color: #222222;
  --pico-primary: #3f7d20;
  --pico-primary-background: #3f7d20;
  --pico-primary-hover: #2f6416;
  --pico-h1-color: #2b2b2b;
  --pico-h2-color: #2b2b2b;
  --pico-h3-color: #2b2b2b;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background-color: #ffffff;
  color: #222222;
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #ffffff;
  color: #222222;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a {
  color: var(--green);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ masthead */

.masthead {
  display: block;
  margin: 0;
  padding: 1.25rem 1rem .25rem;
  background-color: #ffffff;
  color: var(--black);
  text-align: center;
}

.ad-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 0 0 .35rem;
  font-family: var(--font-head);
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-label::before,
.ad-label::after {
  content: "";
  width: 2rem;
  height: 1px;
  background-color: #b5b5b5;
}

.wordmark {
  display: inline-block;
  padding: .2rem .25rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: .005em;
  color: var(--black);
  text-decoration: none;
}
.wordmark span { color: var(--green); }
.wordmark:hover,
.wordmark:focus-visible { color: var(--black); }
.wordmark:hover span { color: var(--green-dark); }

.masthead nav {
  display: block;
  margin: .25rem 0 0;
  padding: 0;
}
.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.masthead nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .65rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green-edge);
}

/* --------------------------------------------------------------- article shell */

main {
  display: block;
  margin: 0;
  padding: 0 0 1rem;
  background-color: #ffffff;
  color: #222222;
}

article {
  display: block;
  width: min(calc(100% - 2rem), 50rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  color: #222222;
}

article > header {
  margin: 0;
  padding: 1.5rem 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  text-align: center;
}

h1 {
  margin: 0 0 .85rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.85rem);
  line-height: 1.2;
  color: var(--head);
  text-wrap: balance;
}

.byline {
  margin: 0 0 1.5rem;
  font-size: .9rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.dek {
  margin: 0 0 2rem;
  padding: .9rem 1rem;
  background-color: var(--grey);
  color: #222222;
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.6;
  text-align: left;
}

article p {
  margin: 0 0 1.4em;
  color: #222222;
}

article strong { font-weight: 700; color: #222222; }

article a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .17em;
  text-decoration-thickness: 1px;
}
article a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

article section {
  display: block;
  margin: 0;
  padding: 0;
}

h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  line-height: 1.25;
  color: var(--head);
  text-wrap: balance;
  scroll-margin-top: 1rem;
}

h3 {
  margin: 2rem 0 .5rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--head);
}

article ul,
article ol {
  margin: 0 0 1.5em;
  padding: 0 0 0 1.6rem;
  color: #222222;
}
article ul li { list-style: disc; margin: 0 0 .3em; padding: 0; }
article ol li { list-style: decimal; margin: 0 0 .3em; padding: 0; }

/* check-mark list (who it suits) */
article ul.checks { list-style: none; padding: 0; }
article ul.checks li {
  position: relative;
  list-style: none;
  margin: 0 0 .8rem;
  padding-left: 2rem;
}
article ul.checks li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .5em;
  width: .75rem;
  height: .4rem;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- media */

figure {
  display: block;
  margin: 2rem 0;
  padding: 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: var(--grey);
}
figure img.crop-kitchen { object-position: 60% 45%; }

.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--grey);
}
.frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 40%;
}

figcaption {
  margin: 0;
  padding: .55rem 0 0;
  font-size: .875rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}

.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 2rem 0;
}
.pair figure { margin: 0 0 1.5rem; }
.pair figure:last-child { margin-bottom: 0; }
.pair figure img,
.pair .frame { aspect-ratio: 4 / 3; }

/* -------------------------------------------------------------- contents box */

details.toc {
  display: block;
  width: 100%;
  margin: 0 0 2.25rem;
  padding: .15rem 1rem;
  border: 1px solid #b5b5b5;
  border-radius: 0;
  background-color: var(--grey-soft);
  color: #222222;
}
details.toc summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--head);
  border: 0;
  background: none;
}
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::marker { content: ""; }
details.toc summary::after {
  content: "[show]";
  display: inline;
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  background-image: none;
  transform: none;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--green);
  text-decoration: underline;
}
details.toc[open] summary::after { content: "[hide]"; }
details.toc summary:hover { color: var(--green); }
details.toc[open] summary { margin-bottom: .25rem; }
details.toc ol { margin: 0 0 .75rem; padding: 0 0 0 1.4rem; }
details.toc li { margin: 0; }
details.toc li a {
  display: inline-block;
  padding: .3rem 0;
  font-weight: 400;
  font-size: 1rem;
}

/* ------------------------------------------------------------------ CTAs */

.btn,
article a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background-color: var(--green);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--green-dark);
  cursor: pointer;
}
.btn::after {
  content: "";
  flex: none;
  width: .5em;
  height: .5em;
  margin-left: .65rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.btn:hover,
article a.btn:hover {
  background-color: var(--green-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #234d10;
}
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dark); }

article p.exit-note,
.exit-note {
  margin: .65rem 0 0;
  font-size: .8125rem;
  font-style: normal;
  line-height: 1.45;
  color: var(--muted);
}

aside.cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin: 2.5rem 0;
  padding: 1.25rem 1.1rem 1.35rem;
  border: 2px solid var(--green-edge);
  border-radius: 8px;
  background-color: #f6faf1;
  background-image: linear-gradient(135deg, var(--green-tint) 0%, #f6faf1 45%, #ffffff 100%);
  color: #222222;
}
aside.cta svg { display: block; width: 36px; height: 64px; }
aside.cta .cta-title {
  margin: 0 0 .4rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--head);
}
article aside.cta p { margin: 0 0 1rem; }
article aside.cta p.cta-title { margin: 0 0 .4rem; }
article aside.cta p.exit-note { margin: .65rem 0 0; }
aside.cta .cta-btn-row { margin: 0; }

.cta-inline {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.4rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.cta-inline .lead {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--head);
}
article .cta-inline p { margin: 0 0 1rem; }
article .cta-inline p.exit-note { margin: .65rem auto 0; max-width: 32rem; }

/* ---------------------------------------------------------- pull-quote card */

blockquote {
  margin: 2.25rem 0;
  padding: 1rem 1.15rem;
  border: 0;
  border-radius: 3px;
  background-color: var(--beige);
  color: var(--head);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
}
blockquote p,
article blockquote p { margin: 0; color: var(--head); }
blockquote cite {
  display: block;
  margin: .6rem 0 0;
  font-size: .85rem;
  font-style: normal;
  color: var(--muted);
}

/* -------------------------------------------------------------------- table */

.table-wrap {
  width: 100%;
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
}
.table-wrap table,
.table-wrap thead,
.table-wrap tbody,
.table-wrap tr,
.table-wrap th,
.table-wrap td { display: block; }

.table-wrap table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #ffffff;
  color: #222222;
  font-size: 1rem;
  line-height: 1.5;
}
.table-wrap thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.table-wrap tbody tr {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  background-color: #ffffff;
}
.table-wrap tbody tr:first-child { border-top: 2px solid var(--head); }
.table-wrap tbody th {
  padding: 0 0 .3rem;
  border: 0;
  background-color: transparent;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: left;
  color: var(--green);
}
.table-wrap tbody th::before { content: "Step "; }
.table-wrap td {
  padding: .2rem 0;
  border: 0;
  background-color: transparent;
  color: #222222;
}
.table-wrap td::before {
  content: attr(data-label);
  display: block;
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.table-wrap td:last-child { color: var(--muted); }
.table-wrap td:last-child::before { color: var(--muted); }

/* ------------------------------------------------------------ tinted band */

#fit {
  margin-top: 3.25rem;
  padding: 2.25rem 0 1.25rem;
  background-color: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
#fit > h2:first-child { margin-top: 0; }
#fit + section { padding-top: .5rem; }

/* ------------------------------------------------------------- legal pages */

.updated {
  margin: 0 0 2rem;
  font-size: .9rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}
article.legal h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.7rem); margin-top: 2.25rem; }
article.legal > header { padding-bottom: .5rem; }
article.legal p.lead { font-size: 1.15rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ------------------------------------------------------------------ footer */

.footer {
  display: block;
  margin: 3.5rem 0 0;
  padding: 0 0 3.5rem;
  border: 0;
  background-color: #ffffff;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.65;
}
.footer > div,
.footer > nav,
.footer > p {
  width: min(calc(100% - 2rem), 50rem);
  margin-left: auto;
  margin-right: auto;
}
.footer p { margin-top: 0; margin-bottom: 0; color: var(--muted); }
.footer .address { margin-bottom: 1rem; color: var(--muted); }
.footer .address p { margin-left: 0; margin-right: 0; line-height: 1.7; }
.footer .address strong { color: #3a3a3a; font-weight: 700; }
.footer nav { margin-top: .5rem; margin-bottom: .75rem; padding: 0; }
.footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer nav li { margin: 0; padding: 0; list-style: none; }
.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-size: .8125rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.footer nav a:hover,
.footer nav a:focus-visible { color: var(--green-dark); text-decoration-thickness: 2px; }
.footer .byline_note { color: var(--muted); }

/* ---------------------------------------------------------------- 480px up */

@media (min-width: 480px) {
  .masthead { padding-top: 1.5rem; }
  .masthead nav ul { gap: 0 .5rem; }
  .masthead nav a { padding: 0 .9rem; font-size: 1.2rem; }
  .btn,
  article a.btn { width: auto; }
  aside.cta { padding: 1.5rem 1.5rem 1.6rem; }
  .cta-inline .btn { min-width: 16rem; }
}

/* ---------------------------------------------------------------- 768px up */

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
  .masthead { padding-top: 1.75rem; padding-bottom: .5rem; }
  .masthead nav { margin-top: .75rem; }
  .masthead nav ul { gap: 0 1.25rem; }
  .masthead nav a { font-size: 1.4rem; padding: 0 .35rem; }
  article > header { padding-top: 2.75rem; }
  .byline { margin-bottom: 1.75rem; }
  .dek { padding: 1rem 1.1rem; font-size: 1.125rem; margin-bottom: 2.5rem; }
  h2 { margin-top: 3.75rem; margin-bottom: 1.1rem; }
  figure { margin: 2.5rem 0; }

  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }
  .pair figure { margin: 0; }

  aside.cta {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
  }
  aside.cta svg { width: 54px; height: 96px; margin: 0 .5rem; }
  aside.cta .cta-title { font-size: 1.75rem; }

  blockquote { padding: 1.25rem 1.5rem; font-size: 1.3rem; }

  .table-wrap table { display: table; }
  .table-wrap thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .table-wrap tbody { display: table-row-group; }
  .table-wrap tr { display: table-row; }
  .table-wrap th,
  .table-wrap td { display: table-cell; }
  .table-wrap thead th {
    padding: .65rem .9rem;
    border: 0;
    border-bottom: 2px solid var(--head);
    background-color: #ffffff;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: .9rem;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--head);
  }
  .table-wrap tbody tr { padding: 0; border-bottom: 0; }
  .table-wrap tbody tr:first-child { border-top: 0; }
  .table-wrap tbody th,
  .table-wrap td {
    padding: 1rem .9rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
  }
  .table-wrap tbody th { width: 4.5rem; font-size: 1.75rem; padding-bottom: .9rem; }
  .table-wrap tbody th::before { content: ""; }
  .table-wrap td::before { display: none; }
  .table-wrap td:first-of-type { width: 46%; }

  #fit { margin-top: 4rem; padding: 3rem 0 1.75rem; }
  .footer { margin-top: 5rem; }
}

/* --------------------------------------------------------------- 1024px up */

@media (min-width: 1024px) {
  article > header { padding-top: 3.25rem; }
  h2 { margin-top: 4.25rem; }
  #fit { margin-top: 4.5rem; }
}

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