/* The Algarve Monday. Champagne Seal brand v2 (16 Sep 2026):
   dark frame (masthead, signup, footer) in near-black #0B0B0C with champagne
   gold #C9A961; reading surfaces stay light for long editions. Cormorant
   Garamond / Inter. Square corners, flat colour, no shadows, no gradients. */

:root {
  --paper: #FAFAF8;
  --ink: #141414;
  --line: #E4E1DA;
  --black: #0B0B0C;
  --gold: #C9A961;
  --gold-deep: #8A6D33;
  --gold-tint: #F7F1E3;
  --cream: #F4F1EA;
  --stone: #4a4a47;
  --serif: "Cormorant Garamond", 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(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

/* Masthead (dark) */
.masthead {
  background: var(--black);
  text-align: center;
  padding: 2.4rem 1.25rem 1.7rem;
  border-bottom: 1px solid var(--gold);
}
.masthead-lockup { line-height: 1; }
.masthead-lockup a {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 0.9rem;
}
.masthead-seal { width: clamp(4.6rem, 9vw, 6.2rem); height: auto; }
.masthead-title {
  font-family: var(--serif); font-weight: 500; color: var(--cream);
  font-size: clamp(2.4rem, 6.5vw, 3.9rem); letter-spacing: 0.01em;
}
.masthead-kicker {
  font-family: var(--sans); font-weight: 300; color: var(--gold);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.3em;
}
.masthead-sponsor { margin-top: 1rem; font-size: 0.8rem; color: rgba(244, 241, 234, 0.55); }
.masthead-sponsor a { color: var(--gold); }
.masthead-sponsor a:hover { color: var(--cream); }

/* 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(--gold-deep); 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.8rem; 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.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--gold-deep); }
.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.7rem, 3.8vw, 2.4rem); }
.standfirst { margin-top: 1rem; font-size: 1.2rem; 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.7rem; margin: 2.4rem 0 0.9rem; }
.post-body h3 { font-size: 1.3rem; 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(--gold); 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(--gold); border-left: 4px solid var(--gold);
  background: var(--gold-tint);
  font-size: 0.92rem; color: var(--stone);
}

/* Footer (dark) */
.site-footer { background: var(--black); border-top: 1px solid var(--gold); margin-top: 3rem; }
.footer-inner { max-width: 44rem; margin: 0 auto; padding: 2.4rem 1.25rem 3rem; font-size: 0.9rem; color: rgba(244, 241, 234, 0.66); }
.footer-inner p { margin: 0.6rem 0; }
.footer-inner a { color: var(--gold); }
.footer-inner a:hover { color: var(--cream); }
.footer-inner a.btn-news { color: var(--black); }
.footer-inner a.btn-news:hover { background: var(--cream); color: var(--black); }
.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; }

/* Concierge corner byline portrait */
.post-body figure.concierge-photo { float: right; width: 7rem; margin: 0.3rem 0 0.9rem 1.3rem; }
.post-body figure.concierge-photo img { display: block; border: 1px solid var(--line); }
@media (max-width: 540px) { .post-body figure.concierge-photo { width: 5.5rem; margin-left: 1rem; } }

/* Site navigation inside the dark masthead */
.site-nav {
  margin-top: 1.6rem;
  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(--cream); text-decoration: none; padding: 0.5rem 0.2rem; }
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom: 2px solid var(--gold); }

/* Top utility bar (dark) and footer social row */
.topbar { background: var(--black); border-bottom: 1px solid rgba(201, 169, 97, 0.35); }
.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: rgba(244, 241, 234, 0.6); }
.topbar-actions { display: inline-flex; align-items: center; gap: 0.9rem; }
.icon-link { display: inline-flex; color: var(--cream); padding: 0.4rem; }
.icon-link:hover { color: var(--gold); }
.icon-link svg { width: 1.15rem; height: 1.15rem; }
.btn-news {
  display: inline-block; background: var(--gold); color: var(--black);
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 0.55rem 0.95rem; text-decoration: none; white-space: nowrap;
}
.btn-news:hover { background: var(--cream); color: var(--black); }
.footer-social { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.footer-social .icon-link { color: rgba(244, 241, 234, 0.8); }
.footer-social .icon-link:hover { color: var(--gold); }
@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(--black); color: var(--cream); border: 1px solid var(--gold);
  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 (dark) */
.signup { background: var(--black); border-top: 1px solid var(--gold); margin-top: 3rem; }
.signup-inner { max-width: 44rem; margin: 0 auto; padding: 2.8rem 1.2rem; text-align: center; }
.signup-kicker { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }
.signup-title { font-size: 1.7rem; margin-top: 0.5rem; color: var(--cream); font-weight: 500; }
.signup-blurb { color: rgba(244, 241, 234, 0.66); 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: var(--paper);
  border: 1px solid var(--gold); padding: 0.8rem 1rem; min-width: 16rem; flex: 1 1 16rem; max-width: 22rem;
}
.signup-form input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.signup-form button {
  font: 500 0.85rem var(--sans); letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  background: var(--gold); color: var(--black); border: 1px solid var(--gold); padding: 0.8rem 1.6rem; min-height: 44px;
}
.signup-form button:hover { background: var(--cream); border-color: var(--cream); }
.signup-form button:disabled { opacity: 0.6; cursor: default; }
.signup-msg { flex-basis: 100%; color: rgba(244, 241, 234, 0.66); font-size: 0.9rem; min-height: 1.2em; }
.signup-done { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.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, brand v2 palette) */
.consent-bar {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  background: var(--black); color: var(--cream);
  border-top: 1px solid var(--gold);
  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: var(--gold); }
.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 var(--cream); outline-offset: 3px; }
.consent-btn.accept { background: var(--gold); border: 1px solid var(--gold); color: var(--black); }
.consent-btn.accept:hover { background: var(--cream); border-color: var(--cream); }
.consent-btn.decline { background: transparent; border: 1px solid rgba(244, 241, 234, 0.6); color: var(--cream); }
.consent-btn.decline:hover { border-color: var(--cream); }
.linklike {
  background: none; border: 0; padding: 0; font: inherit;
  color: inherit; text-decoration: underline; cursor: pointer;
}

/* Video embeds in guides/editions (portrait phone footage constrained) */
.post-body video { display: block; width: 100%; max-width: 24rem; height: auto; margin: 0 auto; background: var(--black); }

/* Footer masthead: seal + wordmark */
.footer-masthead { text-align: center; margin-top: 2.4rem; }
.footer-masthead a { display: inline-flex; flex-direction: column; align-items: center; gap: 0.7rem; text-decoration: none; }
.footer-seal { width: 4.2rem; height: auto; }
.footer-wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--cream); }

/* Photo save deterrent (pairs with js/guard.js) */
img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; }
