/* My Adopted Life — static site styles. Palette and type taken from the original Elementor kit. */
:root {
  --teal: #02A99D;
  --teal-light: #3DC0B7;
  --cream: #F2F1EC;
  --ink: #252525;
  --muted: #6b6b6b;
  --navy: #291F46;
  --gold: #D6B588;
  --max: 1140px;
  --narrow: 760px;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Merriweather", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink); background: #fff; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #017e75; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.25; margin: 0 0 .6em; font-weight: 500; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 2px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid #ddd; margin: 2rem 0; }
blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 4px solid var(--teal); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
blockquote cite { display: block; margin-top: .5rem; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
.center img, figure.center img { margin-left: auto; margin-right: auto; }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow, .narrow { max-width: var(--narrow); }
.band { padding: 56px 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.band.dark, .band.dark h1, .band.dark h2, .band.dark h3, .band.dark h4, .band.dark p, .band.dark li { color: #fff; }
.band.dark a:not(.btn) { color: #fff; }
.band.hero { min-height: 520px; display: flex; align-items: center; }
.band.hero .wrap { width: 100%; text-align: center; }
.band.hero h1, .band.hero h2 { text-transform: uppercase; letter-spacing: 3px; font-weight: 300; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.row > * { flex: 1 1 0; min-width: min(240px, 100%); }
.stack > * + * { margin-top: 1rem; }
.prose { max-width: var(--narrow); }
.text > :last-child { margin-bottom: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eee; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo img { width: 210px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 18px; }
.main-nav > ul > li { white-space: nowrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; }
.main-nav a:hover { color: var(--teal); }
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > ul { display: none; position: absolute; left: -16px; top: 100%; background: #fff; padding: 10px 16px; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.main-nav .has-sub:hover > ul, .main-nav .has-sub:focus-within > ul { display: block; }
.main-nav .has-sub > ul a { display: block; padding: 6px 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--teal); margin: 5px 0; border-radius: 2px; }

/* buttons */
.btnrow { margin: 1rem 0; }
.btn { display: inline-block; padding: 12px 26px; background: var(--teal); color: #fff; text-decoration: none; border-radius: 30px; font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; border: 2px solid transparent; }
.btn:hover { filter: brightness(.92); }
.band.dark .btn:not([style]) { background: #fff; color: var(--teal); }
.btn[style*='border-color'] { border-width: 2px; border-style: solid; }

/* media */
figure { margin: 0 0 1rem; }
figure.img img { border-radius: 2px; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 1rem 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.box { margin: 1rem 0; }
.embed { margin: 1rem 0; }
.stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 3px; }
details { border-bottom: 1px solid #ddd; padding: .6rem 0; }
summary { cursor: pointer; font-weight: 600; }
.tabs .tab + .tab { margin-top: 2.5rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 28px; margin-top: 1.5rem; }
.card { background: #fff; color: var(--ink); }
.band.dark .card, .band.dark .card p, .band.dark .card h3 { color: var(--ink); }
.card a { text-decoration: none; color: inherit; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .8rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.card h3:hover { color: var(--teal); }
.meta { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: .4rem; }

/* single post */
.post-head { padding: 56px 0 24px; text-align: center; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.post-feature img { width: 100%; }
.post-body .band { padding: 24px 0; }
.post-body .wrap { max-width: var(--narrow); }
.post-body .row { flex-wrap: wrap; }
.author { display: flex; gap: 16px; align-items: center; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 20px; margin-top: 40px; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; font-size: .95rem; }
.postnav { display: flex; justify-content: space-between; gap: 20px; margin: 32px 0 56px; font-size: .95rem; }
.postnav a { text-decoration: none; max-width: 45%; }

/* signup + footer */
.signup-band { background: var(--teal); text-align: center; }
.signup-band h2 { margin-bottom: .3rem; }
.signup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.signup-form input[type=email] { padding: 12px 16px; font: inherit; border: 0; border-radius: 30px; min-width: 280px; }
.signup-form button { padding: 12px 26px; border: 0; border-radius: 30px; background: var(--navy); color: #fff; font: inherit; font-weight: 600; letter-spacing: 1px; cursor: pointer; }
.signup-slot { min-height: 1px; }
.site-footer { background: #1d1d1f; color: #cfcfcf; padding: 56px 0 24px; font-size: .9rem; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer .cols { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 40px; }
.site-footer .bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; text-align: center; }
.site-footer .social { display: flex; gap: 18px; justify-content: center; margin-bottom: 1rem; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #eee; padding: 10px 20px 20px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 8px 0; }
  .main-nav .has-sub > ul { display: block; position: static; box-shadow: none; padding: 0 0 0 16px; }
}
@media (max-width: 800px) {
  .row { flex-direction: column; }
  .row > * { flex: 1 1 auto !important; width: 100%; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .band { padding: 40px 0; }
  .band.hero { min-height: 360px; }
}

/* resource cards */
.cards.collapsed > .card:nth-child(n+7) { display: none; }
.card.res img { aspect-ratio: auto; max-height: 260px; width: auto; max-width: 100%; margin: 0 auto .8rem; object-fit: contain; }
.card.res h3 { font-size: 1.15rem; }
.card.res .by { font-style: italic; color: var(--muted); margin-top: -.2rem; }
.card.res p { font-size: .95rem; }
.card h2 { font-size: 1.2rem; }
.btn[style*="background-color:#FFFFFF"]:not([style*=";color"]) { color: var(--teal); }
.card.res p:not(.btnrow):not(.by) { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .8rem; opacity: .85; margin-top: .8rem; }
.contact-form label { display: block; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: .3rem; padding: 10px 12px; font: inherit; font-weight: 400; border: 1px solid #ccc; border-radius: 4px; }
.contact-form .two { display: flex; gap: 16px; }
.contact-form .two label { flex: 1; }
.contact-form button { border: 0; cursor: pointer; }
