/* My Daily Dose — main brand site */
:root {
  --ink: #1a1f1c;
  --ink-soft: #3d4740;
  --fog: #eef2ef;
  --paper: #f7faf8;
  --line: #cfd8d2;
  --accent: #c45c26;
  --accent-deep: #9a4518;
  --sage: #3f6f5c;
  --sage-soft: #d8e8df;
  --vibrancy: #e0b429;
  --tile: #ffffff;
  --ad-bg: #e5ece7;
  --radius: 16px;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 720px;
  --max-wide: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(224, 180, 41, 0.14), transparent 55%),
    radial-gradient(800px 380px at 0% -5%, rgba(63, 111, 92, 0.12), transparent 50%),
    linear-gradient(180deg, var(--fog) 0%, var(--paper) 40%, #f3f7f4 100%);
}

a {
  color: var(--sage);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner,
.footer-inner,
.wrap,
.hero,
.section {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.nav .cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none !important;
}

.nav .cta:hover {
  background: var(--accent-deep);
}

main {
  padding: 1.75rem 0 3.5rem;
}

.hero {
  padding: 0.75rem 0 0.5rem;
  margin-bottom: 0.5rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--tile);
  min-height: clamp(220px, 28vw, 280px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 34rem);
  padding: clamp(1rem, 2.2vw, 1.45rem) clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 42%;
  z-index: 1;
  background: #e8eeea;
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.72) 40%,
    rgba(255, 255, 255, 0.2) 75%,
    rgba(255, 255, 255, 0) 100%
  );
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.eyebrow .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--vibrancy);
  margin-right: 0.45rem;
  vertical-align: 0.05rem;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin: 0 0 0.45rem;
  max-width: 22ch;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.85rem;
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.btn-vibrancy {
  background: var(--vibrancy);
  color: #1a1f1c;
}

.btn-vibrancy:hover {
  filter: brightness(0.95);
  color: #1a1f1c;
}

.section {
  margin-top: 2.5rem;
}

.section.ecosystem {
  margin-top: 1.75rem;
}

.section h2,
.content-card h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.65rem;
}

.section.ecosystem h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.35rem;
}

.section-intro {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.section.ecosystem .section-intro {
  font-size: 1.08rem;
  margin-bottom: 1.35rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.property-grid.featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 160ms ease, transform 160ms ease;
}

.property-card:hover {
  border-color: var(--vibrancy);
  transform: translateY(-3px);
}

.property-card .media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #dfe8e3 center / cover no-repeat;
}

.property-card .media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--vibrancy);
}

.property-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.property-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.property-card p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
  font-size: 1rem;
}

.property-card .meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.property-card .meta.vivid {
  color: var(--vibrancy);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    order: 2;
  }

  .hero-photo {
    position: relative;
    left: auto;
    height: 240px;
    order: 1;
  }

  .hero-photo img {
    object-position: center 20%;
  }

  .hero-photo::before {
    inset: auto 0 0 0;
    width: auto;
    height: 40%;
    background: linear-gradient(
      0deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .property-grid.featured {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.panel h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.panel p:last-child {
  margin-bottom: 0;
}

.checklist {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.checklist li + li {
  margin-top: 0.4rem;
}

.content-card {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.8rem;
}

.content-card h2 {
  margin-top: 1.6rem;
}

.content-card h2:first-of-type {
  margin-top: 1rem;
}

.content-card p,
.content-card li {
  color: var(--ink-soft);
}

.content-card ul {
  padding-left: 1.2rem;
}

.page-title.article-title,
.article-title {
  max-width: none;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
}

.article-meta {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.article-body {
  line-height: 1.65;
}

.article-body h2 {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.article-body code {
  font-size: 0.92em;
  background: rgba(20, 40, 32, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.notes-list {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.notes-archive {
  width: min(100% - 2rem, var(--max));
  margin: 1.25rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.notes-header {
  margin-top: 1.5rem;
}

.note-teaser {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}

.note-teaser h3,
.note-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.note-teaser h3 a,
.note-title a {
  color: var(--ink);
  text-decoration: none;
}

.note-teaser h3 a:hover,
.note-title a:hover {
  color: var(--accent);
}

.note-date {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.note-teaser p {
  margin: 0;
  color: var(--ink-soft);
}

.section-more {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
}

.ad-slot {
  width: min(100% - 2rem, var(--max-wide));
  margin: 2rem auto;
  min-height: 90px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--ad-bg);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.92);
  padding: 1.6rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 650;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
