/* Maré — litoralclick.digital | local-newspaper, ocean + sand, bordered cards */
:root {
  --ocean: #0077B6;
  --ocean-dark: #005a8c;
  --ocean-light: #48cae4;
  --sand: #F4E8D1;
  --sand-dark: #e6d4b5;
  --ink: #1a2e3b;
  --ink-muted: #5a6f7d;
  --white: #ffffff;
  --border: #c9d4dc;
  --max-width: 1120px;
  --reading: 640px;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --line: 1.55;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 93.75%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--ink);
  line-height: var(--line);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: "kern" 1;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-dark); text-decoration: underline; }

/* Compact topbar */
.compact-topbar {
  background: var(--ocean-dark);
  color: var(--white);
  font-size: 0.68rem;
  padding: 0.3rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}
.compact-topbar a { color: var(--ocean-light); text-decoration: none; }
.compact-topbar a:hover { color: var(--white); }
.compact-topbar .cities { opacity: 0.88; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--ocean);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--ocean-dark); }
.site-logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}
.main-nav { display: flex; gap: 1.25rem; }
.main-nav a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ocean); }
.menu-toggle {
  display: none;
  background: var(--ocean);
  color: var(--white);
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }

/* Bordered cards */
.bordered-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.bordered-card:hover { border-color: var(--ocean); }
.bordered-card img { width: 100%; object-fit: cover; }
.bordered-card-body { padding: 0.85rem 1rem; }
.coast-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ocean);
  border: 1px solid var(--ocean-light);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.35rem;
}
.bordered-card h2, .bordered-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.bordered-card h2 { font-size: 1.35rem; }
.bordered-card h2 a, .bordered-card h3 a { color: var(--ink); text-decoration: none; }
.bordered-card h2 a:hover, .bordered-card h3 a:hover { color: var(--ocean); }
.card-meta { font-size: 0.68rem; color: var(--ink-muted); }
.card-excerpt { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.35rem; line-height: 1.45; }

/* Mixed-magazine homepage */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  padding: 1.5rem 0 2.5rem;
  align-items: start;
}
.home-main { display: flex; flex-direction: column; gap: 1.5rem; }

.featured-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  border: 2px solid var(--ocean);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-block .featured-img img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.featured-text {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-text .coast-tag { align-self: flex-start; }
.featured-text h1 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.22;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.featured-text h1 a { color: inherit; text-decoration: none; }
.featured-text h1 a:hover { color: var(--ocean); }
.featured-lead { font-size: 0.84rem; color: var(--ink-muted); margin-bottom: 0.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.85rem;
}
.section-head h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ocean-dark);
}
.section-head a { font-size: 0.68rem; font-weight: 600; text-decoration: none; }

.article-list { display: flex; flex-direction: column; gap: 0.85rem; }
.list-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sand-dark);
}
.list-row:last-child { border-bottom: none; padding-bottom: 0; }
.list-row img { width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); }
.list-row h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.list-row h3 a { color: var(--ink); text-decoration: none; }
.list-row h3 a:hover { color: var(--ocean); }

/* Sidebar */
.home-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.sidebar-box h3 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ocean);
  margin-bottom: 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sand-dark);
}
.sidebar-box p { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.5rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box li {
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sand);
}
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sidebar-box li a:hover { color: var(--ocean); }
.sidebar-picks .pick-meta { font-size: 0.65rem; color: var(--ink-muted); display: block; margin-top: 0.15rem; }

.newsletter-box {
  background: var(--ocean);
  border-color: var(--ocean-dark);
  color: var(--white);
}
.newsletter-box h3 { color: var(--sand); border-bottom-color: rgba(255,255,255,0.2); }
.newsletter-box p { color: rgba(255,255,255,0.88); }
.newsletter-form { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }
.newsletter-form input {
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
}
.newsletter-form button {
  padding: 0.5rem;
  background: var(--sand);
  color: var(--ocean-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.newsletter-form button:hover { background: var(--white); }

/* Da costa block */
.editorial-intro {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ocean);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.5rem;
}
.editorial-intro h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ocean-dark);
  margin-bottom: 0.65rem;
}
.editorial-intro p {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}
.editorial-intro p:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.card-grid .bordered-card img { height: 140px; }

/* Minimalist reading article */
.article-reading {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.article-reading .article-header { margin-bottom: 1.25rem; }
.article-reading h1 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0.5rem 0 0.65rem;
  font-weight: 600;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.tag-pill {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ocean);
  background: var(--white);
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--sand-dark);
}
.article-meta-bar .author-link { font-weight: 600; color: var(--ocean); }
.article-hero-img {
  border: 1px solid var(--border);
  margin: 1.25rem 0;
  border-radius: var(--radius);
}
.prose p { margin-bottom: 0.9rem; font-size: 0.95rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ocean-dark);
  margin: 1.5rem 0 0.6rem;
  font-weight: 600;
}
.prose .lead {
  font-size: 1.02rem;
  color: var(--ink-muted);
  border-left: 3px solid var(--ocean);
  padding-left: 1rem;
  margin-bottom: 1.1rem;
}
.prose em.update-note {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sand-dark);
}
.related-strip {
  max-width: var(--reading);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.related-strip h2 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: 0.65rem;
}
.related-links { display: flex; flex-direction: column; gap: 0.4rem; }
.related-links a { font-size: 0.85rem; font-weight: 600; }

/* Page content */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.page-content h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--ocean-dark);
  margin-bottom: 0.5rem;
}
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ocean);
  margin: 1.35rem 0 0.5rem;
}
.page-content p, .page-content li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}
.page-content ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.page-content .lead { font-size: 0.95rem; margin-bottom: 1rem; }

/* Articles archive */
.articles-page { padding: 1.5rem 0 2.5rem; }
.articles-page h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--ocean-dark);
  margin-bottom: 0.35rem;
}
.articles-page .lead { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.5rem; }
.archive-list { display: flex; flex-direction: column; gap: 1rem; }
.archive-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.archive-item img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.archive-item-body { padding: 1rem 1rem 1rem 0; display: flex; flex-direction: column; justify-content: center; }
.archive-item h2 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.35rem; }
.archive-item h2 a { color: var(--ink); text-decoration: none; }
.archive-item h2 a:hover { color: var(--ocean); }

/* Authors on about */
.author-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand-dark);
}
.author-row:last-child { border-bottom: none; }
.author-row img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ocean-light); }
.author-row strong { font-size: 0.9rem; color: var(--ink); }
.author-row p { font-size: 0.82rem; margin-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  margin-top: 0.65rem;
  color: var(--ocean-dark);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: var(--white);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  margin-top: 0.85rem;
  padding: 0.6rem 1.25rem;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-form button:hover { background: var(--ocean-dark); }
.form-feedback {
  display: none;
  margin-top: 0.65rem;
  padding: 0.65rem;
  background: #e8f4ea;
  color: #1e5631;
  border: 1px solid #b8d4be;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  background: var(--ocean-dark);
  color: var(--white);
  padding: 1.75rem 0 1rem;
  margin-top: auto;
  font-size: 0.78rem;
  border-top: 3px solid var(--ocean-light);
}
.site-footer a { color: var(--ocean-light); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.footer-grid h3 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--sand);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.85rem;
  font-size: 0.68rem;
  opacity: 0.8;
}

/* Cookie */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  display: none;
  z-index: 200;
  border-top: 2px solid var(--ocean);
}
.cookie-notice.visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.cookie-notice a { color: var(--ocean-light); }
.cookie-accept {
  background: var(--ocean);
  color: var(--white);
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .home-layout, .featured-block, .card-grid, .contact-grid, .footer-grid, .archive-item { grid-template-columns: 1fr; }
  .archive-item img { min-height: 180px; }
  .archive-item-body { padding: 1rem; }
  .list-row { grid-template-columns: 90px 1fr; }
  .list-row img { width: 90px; height: 68px; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid var(--ocean);
    gap: 0.65rem;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
}
