/* The Algarve Monday. Shares the Villa Lux Luz design language:
   Playfair Display / Inter, paper #FAFAF8, ink #141414, hairline #E4E1DA,
   teal #126E80, orange #F7941D used sparingly. Square corners, no shadows. */

:root {
  --paper: #FAFAF8;
  --ink: #141414;
  --line: #E4E1DA;
  --teal-dark: #126E80;
  --orange: #F7941D;
  --stone: #4a4a47;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

/* Masthead */
.masthead {
  text-align: center;
  padding: 2rem 1.25rem 1.6rem;
  border-bottom: 3px double var(--ink);
}
.masthead-eyebrow {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--teal-dark); margin-bottom: 0.9rem;
}
.masthead-title { font-size: clamp(2.4rem, 7vw, 4.2rem); letter-spacing: 0.01em; }
.masthead-title a { color: var(--ink); text-decoration: none; }
.masthead-strapline { margin-top: 0.9rem; font-size: 0.85rem; color: var(--stone); letter-spacing: 0.06em; }
.masthead-sponsor { margin-top: 0.7rem; font-size: 0.8rem; color: var(--stone); }
.masthead-sponsor a { color: var(--teal-dark); }

/* Layout */
.page { max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.kicker {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--teal-dark); margin-bottom: 0.8rem; font-weight: 500;
}

/* Home */
.home-section { margin-top: 3.2rem; }
.home-section:first-child { margin-top: 0; }
.home-section h2 { font-size: 1.7rem; margin-bottom: 1.4rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.post-list a { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--teal-dark); }
.post-list .date { display: block; font-size: 0.8rem; color: var(--stone); margin-top: 0.3rem; }
.post-list .summary { margin-top: 0.4rem; color: var(--stone); font-size: 0.95rem; }
.home-intro { color: var(--stone); max-width: 38rem; }

/* Posts */
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.standfirst { margin-top: 1rem; font-size: 1.15rem; color: var(--stone); font-style: italic; font-family: var(--serif); }
.post-hero { margin: 0 0 2.2rem; }
.post-hero figcaption { font-size: 0.8rem; color: var(--stone); padding-top: 0.5rem; }
.post-body h2 { font-size: 1.55rem; margin: 2.4rem 0 0.9rem; }
.post-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }
.post-body p { margin: 1rem 0; }
.post-body ul, .post-body ol { margin: 1rem 0 1rem 1.4rem; }
.post-body li { margin: 0.45rem 0; }
.post-body blockquote { border-left: 2px solid var(--teal-dark); margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.2rem; color: var(--stone); font-style: italic; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }

.post-sponsor {
  margin-top: 3rem; padding: 1.2rem 1.4rem;
  border: 1px solid var(--line); background: #fff;
  font-size: 0.92rem; color: var(--stone);
}

/* Footer */
.site-footer { border-top: 3px double var(--ink); margin-top: 2rem; }
.footer-inner { max-width: 44rem; margin: 0 auto; padding: 2.4rem 1.25rem 3rem; font-size: 0.9rem; color: var(--stone); }
.footer-inner p { margin: 0.6rem 0; }
.footer-legal { font-size: 0.8rem; padding-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Home hero */
.home-hero { margin: 0 0 2.6rem; }
.home-hero img { width: 100%; }
.home-hero figcaption { font-size: 0.8rem; color: var(--stone); padding-top: 0.5rem; }

/* List thumbnails */
.post-list li { display: flex; gap: 1.2rem; align-items: flex-start; }
.post-list .thumb { flex: 0 0 8.5rem; }
.post-list .thumb img { width: 8.5rem; height: 6rem; object-fit: cover; }
.post-list-text { flex: 1; min-width: 0; }
@media (max-width: 540px) {
  .post-list .thumb { flex-basis: 6rem; }
  .post-list .thumb img { width: 6rem; height: 4.5rem; }
}

/* Inline images inside post bodies */
.post-body figure { margin: 1.8rem 0; }
.post-body figure img { width: 100%; }
.post-body figcaption { font-size: 0.8rem; color: var(--stone); padding-top: 0.45rem; }

/* Masthead logo image (replaces the text masthead) */
.masthead-logo { margin: 0; line-height: 0; }
.masthead-logo a { display: inline-block; }
.masthead-logo img { width: min(34rem, 92vw); height: auto; }

/* Site navigation under the masthead */
.site-nav {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.8rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.2rem; }
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); border-bottom: 2px solid var(--teal-dark); }

/* Top utility bar and footer social row */
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 44rem; margin: 0 auto; padding: 0.55rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--stone); }
.topbar-actions { display: inline-flex; align-items: center; gap: 0.9rem; }
.icon-link { display: inline-flex; color: var(--ink); padding: 0.4rem; }
.icon-link:hover { color: var(--teal-dark); }
.icon-link svg { width: 1.15rem; height: 1.15rem; }
.btn-news {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 0.55rem 0.95rem; text-decoration: none; white-space: nowrap;
}
.btn-news:hover { background: var(--teal-dark); color: var(--paper); }
.footer-social { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .topbar-tag { display: none; } .topbar-inner { justify-content: center; } }

/* Share button + copied toast */
.share-btn { background: none; border: none; cursor: pointer; position: relative; }
.share-toast {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 20;
}
.share-btn.copied .share-toast { opacity: 1; }

/* E-mail signup band */
.signup { border-top: 1px solid var(--line); margin-top: 3rem; }
.signup-inner { max-width: 44rem; margin: 0 auto; padding: 2.6rem 1.2rem; text-align: center; }
.signup-kicker { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-dark); }
.signup-title { font-size: 1.5rem; margin-top: 0.5rem; }
.signup-blurb { color: var(--stone); margin-top: 0.6rem; font-size: 0.95rem; }
.signup-form { margin-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.signup-form input[name="website"] { position: absolute; left: -9999px; height: 0; width: 0; border: 0; padding: 0; }
.signup-form input[type="email"] {
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); padding: 0.8rem 1rem; min-width: 16rem; flex: 1 1 16rem; max-width: 22rem;
}
.signup-form input[type="email"]:focus { outline: 2px solid var(--teal-dark); outline-offset: 1px; }
.signup-form button {
  font: 500 0.85rem var(--sans); letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 0.8rem 1.6rem; min-height: 44px;
}
.signup-form button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.signup-form button:disabled { opacity: 0.6; cursor: default; }
.signup-msg { flex-basis: 100%; color: var(--stone); font-size: 0.9rem; min-height: 1.2em; }
.signup-done { font-family: var(--serif); font-size: 1.1rem; color: var(--teal-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cookie consent bar (BLOG-MONETIZATION-KIT section 3b, blog palette) */
.consent-bar {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  background: var(--ink); color: #fff;
  font-size: 0.9rem; line-height: 1.55; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: center;
}
.consent-bar p { margin: 0; max-width: 46rem; }
.consent-bar a { color: #8ED0DD; }
.consent-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.consent-btn { border: 0; font: inherit; font-weight: 400; cursor: pointer; padding: 0.6rem 1.4rem; }
.consent-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.consent-btn.accept { background: var(--teal-dark); border: 1px solid var(--teal-dark); color: #fff; }
.consent-btn.accept:hover { background: #0d5464; border-color: #0d5464; }
.consent-btn.decline { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.consent-btn.decline:hover { border-color: #fff; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit;
  color: inherit; text-decoration: underline; cursor: pointer;
}
