/* Hydra2Go — design system
   Palette: warm paper, deep Aegean ink, cobalt sea, logo sun-orange.
   Type: Literata (display/headings) + Inter (UI/body). Both cover Greek + Romanian. */

:root {
  --ink: #172a3a;
  --ink-soft: #33475a;
  --stone: #6e7b87;
  --paper: #faf7f1;
  --paper-deep: #f2ecdf;
  --card: #ffffff;
  --line: #e5dfd3;
  --sea: #2a5fa5;
  --sea-dark: #1e4a85;
  --sun: #fea000;
  --sun-soft: #fff3dd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 42, 58, .06), 0 8px 24px -12px rgba(23, 42, 58, .18);
  --font-display: "Literata", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-dark); }

h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; margin: .2em 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 .5em; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .4em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sun); margin-bottom: .6rem;
}
.kicker--sea { color: var(--sea); }
.muted { color: var(--stone); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand svg { width: 42px; height: 42px; color: var(--ink); flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand-name em { color: var(--sun); font-style: normal; }
.brand-tag { display: none; }
@media (min-width: 900px) {
  .brand-tag { display: block; font-size: .68rem; color: var(--stone); letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
}

.nav-main { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-main > a, .nav-more summary {
  padding: 8px 12px; border-radius: 8px; color: var(--ink-soft);
  font-weight: 600; font-size: .92rem; white-space: nowrap; cursor: pointer;
}
.nav-main > a:hover, .nav-more summary:hover { background: var(--paper-deep); color: var(--ink); }
.nav-main > a.active { color: var(--sea); }

details.nav-more { position: relative; }
details.nav-more summary { list-style: none; display: flex; align-items: center; gap: 4px; }
details.nav-more summary::-webkit-details-marker { display: none; }
details.nav-more summary::after { content: "▾"; font-size: .7em; color: var(--stone); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: .92rem; }
.dropdown a:hover { background: var(--paper); color: var(--ink); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.lang-switch summary { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lang-switch .dropdown { min-width: 150px; }
.lang-switch .dropdown a.current { color: var(--sea); font-weight: 700; }

.search-link { padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); display: flex; }
.search-link:hover { background: var(--paper-deep); }

/* mobile nav */
.nav-toggle-box { display: none; }
.nav-burger { display: none; margin-left: auto; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 899px) {
  .nav-main {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px;
  }
  .nav-toggle-box:checked ~ .nav-main { display: flex; }
  .nav-burger { display: block; }
  .nav-main > a, .nav-more summary { padding: 12px 10px; font-size: 1rem; }
  details.nav-more .dropdown { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
  .header-in { position: relative; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin: 0 0 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 26px; }
.hero-img { position: relative; }
.hero-img img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-img::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 2px solid var(--sun); opacity: .5;
}

.searchbar { display: flex; gap: 8px; max-width: 460px; }
.searchbar input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--card); color: var(--ink); outline: none;
}
.searchbar input:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(42, 95, 165, .12); }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; border: 0;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--ink-soft); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #e89200; color: var(--ink); }

/* -------------------------------------------------------------- sections */
.section { padding: 48px 0; }
.section--deep { background: var(--paper-deep); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head .view-all { font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* category tiles (home) */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink); color: #fff; display: block;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .4s, opacity .3s; }
.cat-tile:hover img { transform: scale(1.04); opacity: .92; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 28, 40, .78) 0%, rgba(15, 28, 40, 0) 55%); }
.cat-tile .cat-label {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff;
}
.cat-tile .cat-count { position: absolute; left: 18px; bottom: 44px; z-index: 2; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.cat-tile--flat { background: var(--paper-deep); }
.cat-tile--flat::after { background: none; }
.cat-tile--flat .cat-label, .cat-tile--flat .cat-count { color: var(--ink); }
.cat-tile--flat .cat-count { color: var(--stone); }
.cat-tile--flat .tile-mark { position: absolute; right: 16px; top: 16px; width: 44px; color: var(--line); }

/* cards */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-img { aspect-ratio: 4 / 3; background: var(--paper-deep); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph-mark { position: absolute; inset: 0; margin: auto; width: 64px; color: var(--line); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 0; font-size: 1.12rem; }
.card-body p { margin: 0; font-size: .9rem; color: var(--stone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* journal cards */
.post-card h3 { font-size: 1.15rem; }
.post-date { font-size: .8rem; color: var(--stone); text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- detail */
.detail-hero { margin: 34px 0 30px; }
.breadcrumb { font-size: .85rem; color: var(--stone); margin-bottom: 12px; }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--sea); }
.detail-img img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose { max-width: 720px; font-size: 1.05rem; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.info-sections { max-width: 720px; margin-top: 34px; display: grid; gap: 14px; }
.info-sections details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.info-sections summary { font-weight: 700; cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; }

/* --------------------------------------------------------------- fb band */
.fb-band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .fb-band { grid-template-columns: auto 1fr auto; } }
.fb-band svg { width: 72px; height: 72px; color: var(--paper); }
.fb-band h2 { margin: 0 0 6px; color: #fff; }
.fb-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 46em; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 64px; padding: 52px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 36px; }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
@media (min-width: 1000px) { .footer-brand { grid-column: auto; display: block; } }
.footer-brand svg { width: 48px; height: 48px; color: var(--paper); margin-bottom: 10px; }
.footer-brand .brand-name { color: #fff; font-size: 1.25rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { color: rgba(255, 255, 255, .78); }
.social-row a:hover { color: var(--sun); }
.social-row svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- extras */
.empty-note { background: var(--sun-soft); border: 1px solid #f4d9a8; color: var(--ink-soft); border-radius: 12px; padding: 22px 26px; max-width: 640px; }
.pill { display: inline-block; background: var(--paper-deep); color: var(--ink-soft); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.page-head { padding: 44px 0 8px; max-width: 760px; }
.page-head p.lead { color: var(--ink-soft); font-size: 1.08rem; }
