/* Ev-Zen site — στυλ «Ελαιόλαδο». Self-hosted GFS Didot. Χωρίς cookies/analytics. */
:root {
  --olive: #5A6241;
  --cream: #FBF0DC;
  --parchment: #F1E2C5;
  --sand: #DEC39A;
  --terracotta: #C27A5A;
  --deep: #2E3322;
  --ink: #3A3F2A;
  --link: #3f4630;
  --link-hover: #2E3322;
  --max: 46rem;
  --header-h: 4.25rem;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Greek", "Helvetica Neue", Arial, sans-serif;
  --font-display: "GFS Didot", "Didot", "Times New Roman", serif;
}

@font-face {
  font-family: "GFS Didot";
  src: url("/assets/fonts/GFSDidot-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--link-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, .nav-toggle-label:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--deep);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 0.35rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.draft-banner {
  background: var(--parchment);
  color: var(--deep);
  border-bottom: 1px solid var(--sand);
  text-align: center;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
}
.draft-banner strong { font-weight: 650; }

.site-header {
  background: var(--olive);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(46, 51, 34, 0.18);
}

.site-header a { color: var(--cream); text-decoration: none; }
.site-header a:hover, .site-header a:focus-visible { text-decoration: underline; color: var(--cream); }

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img, .brand svg {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  border: 1.5px solid var(--sand);
  border-radius: 0.45rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  color: var(--cream);
  user-select: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 0.98rem;
  padding: 0.25rem 0;
  display: inline-block;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sand);
}

@media (max-width: 860px) {
  .nav-toggle-label { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .header-inner { flex-wrap: wrap; }
  .nav-toggle:checked ~ .site-nav,
  .header-inner:has(.nav-toggle:checked) .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
    width: 100%;
  }
  .site-nav a {
    display: block;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(222, 195, 154, 0.35);
  }
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.2rem 3.5rem;
}

.page-home main { max-width: 44rem; }

.content h1,
.content h2,
.content h3,
.content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--deep);
  line-height: 1.25;
  letter-spacing: 0.005em;
}
.content h1 {
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  margin: 0.2rem 0 1.1rem;
}
.content h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--sand);
}
.content h3 {
  font-size: 1.2rem;
  margin: 1.6rem 0 0.45rem;
}
.content h4 { font-size: 1.08rem; margin: 1.3rem 0 0.35rem; }
.content p { margin: 0.85rem 0; }
.content ul, .content ol { margin: 0.7rem 0 1rem; padding-left: 1.3rem; }
.content li { margin: 0.35rem 0; }
.content li > ul, .content li > ol { margin: 0.2rem 0 0.4rem; }
.content blockquote {
  margin: 1.1rem 0 1.5rem;
  padding: 0.95rem 1.15rem;
  background: var(--parchment);
  border-left: 4px solid var(--olive);
  border-radius: 0 0.6rem 0.6rem 0;
  color: var(--deep);
}
.content blockquote p:first-child { margin-top: 0; }
.content blockquote p:last-child { margin-bottom: 0; }
.content hr {
  border: 0;
  border-top: 1px solid var(--sand);
  margin: 2rem 0;
}
.content strong { font-weight: 650; color: var(--deep); }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sand);
  border-radius: 0.55rem;
  background: #fffdf7;
}
.content table {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.content th, .content td {
  border-bottom: 1px solid var(--sand);
  border-right: 1px solid var(--parchment);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
  text-align: left;
}
.content th {
  background: var(--parchment);
  color: var(--deep);
  font-weight: 650;
  white-space: nowrap;
}
.content tr:last-child td { border-bottom: 0; }
.content th:last-child, .content td:last-child { border-right: 0; }

mark.todo, .todo {
  background: #f3d9a2;
  color: var(--deep);
  padding: 0.05em 0.28em;
  border-radius: 0.25rem;
  font-weight: 650;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.15rem 0 0.5rem;
}
.store-badge-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 0.45rem;
}
.store-badge-link:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 4px;
}
/* Visible badge height 48px. The global `img { height: auto }` must not win. */
.store-badge-link img {
  display: block;
  width: auto;
  max-width: none;
  height: 48px;
}
/* Official Play PNG is 646×250 with 29px transparent padding top and bottom
   (visible artwork 192px). Scale the file so that 192px maps to 48px, then
   pull the extra padding out of the flex box with a negative margin. */
.store-badge-link--play img {
  height: calc(48px * 250 / 192);
  margin-block: calc(-29px * 48 / 192);
}
@media (max-width: 40rem) {
  .store-badge-link img { height: 44px; }
  .store-badge-link--play img {
    height: calc(44px * 250 / 192);
    margin-block: calc(-29px * 44 / 192);
  }
}


.meta-line {
  color: #555a45;
  font-size: 0.95rem;
}

.site-footer {
  background: var(--deep);
  color: var(--cream);
  padding: 2.2rem 1.15rem 2.4rem;
  margin-top: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-inner { max-width: 72rem; margin: 0 auto; }
.site-footer a { color: var(--cream); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--parchment); }
.footer-entity { font-weight: 650; margin: 0 0 0.35rem; }
.footer-ids, .footer-address, .footer-contact { margin: 0.15rem 0; }
.footer-stores { margin: 0.7rem 0 0; }
.footer-stores a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.footer-stores a:hover { border-bottom-color: var(--cream); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 1.15rem 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.footer-nav a:hover { border-bottom-color: var(--cream); }
.helplines {
  background: rgba(251, 240, 220, 0.08);
  border: 1px solid rgba(222, 195, 154, 0.45);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  margin: 0.4rem 0 1rem;
}
.helplines a { font-weight: 650; text-decoration: none; }
.disclaimer { margin: 0 0 0.85rem; }
.copyright { margin: 0; opacity: 0.85; font-size: 0.9rem; }

.not-found {
  text-align: center;
  padding: 3rem 0 2rem;
}
.not-found h1 { font-family: var(--font-display); font-weight: 400; color: var(--deep); font-size: 2.2rem; }
.not-found a.button {
  display: inline-block;
  margin-top: 1rem;
  background: var(--olive);
  color: var(--cream);
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  border-radius: 0.5rem;
}
.not-found a.button:hover { background: var(--deep); color: var(--cream); }

@media print {
  .draft-banner, .site-header, .site-footer, .skip, .nav-toggle-label { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  a { color: inherit; }
}

.form-pending {
  background: var(--parchment);
  border: 1px dashed var(--olive);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
}

.wip-banner {
  background: var(--parchment);
  border: 2px solid var(--olive);
  color: var(--deep);
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  margin: 0 0 1.2rem;
}
.wip-section {
  border: 2px dashed var(--olive);
  border-radius: 0.7rem;
  padding: 0.9rem 1rem 0.2rem;
  margin: 1.6rem 0;
  background: rgba(241, 226, 197, 0.4);
}
.wip-tag {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  margin-left: 0.25rem;
  white-space: nowrap;
  font-family: var(--font-body);
}
.site-header .wip-tag { color: var(--cream); border-color: var(--sand); }
.site-footer .wip-tag { color: var(--cream); border-color: var(--sand); }

/* Φόρμα διαγραφής λογαριασμού (/delete-account) */
.deletion-form {
  background: var(--parchment);
  border: 1px solid var(--sand);
  border-radius: 0.7rem;
  padding: 1.15rem 1.15rem 1.05rem;
  margin: 1.4rem 0 1.6rem;
}
.deletion-form h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--deep);
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}
.deletion-form p { margin: 0 0 1rem; }
.deletion-form .field { margin: 0 0 0.95rem; }
.deletion-form label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--deep);
}
.deletion-form input[type="email"],
.deletion-form input[type="text"] {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
}
.deletion-form input[type="email"]:focus,
.deletion-form input[type="text"]:focus,
.deletion-form input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 2px;
}
.deletion-form input[type="text"] {
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  max-width: 10rem;
}
.deletion-form .field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.deletion-form .field-check input[type="checkbox"] {
  margin: 0.35rem 0 0;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--olive);
}
.deletion-form .field-check label {
  font-weight: 400;
  margin: 0;
}
.deletion-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.deletion-form button[type="submit"],
.deletion-form .button-secondary {
  font: inherit;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
}
.deletion-form button[type="submit"] {
  background: var(--olive);
  color: var(--cream);
  border: 1px solid var(--olive);
}
.deletion-form button[type="submit"]:hover,
.deletion-form button[type="submit"]:focus-visible {
  background: var(--deep);
  border-color: var(--deep);
}
.deletion-form .button-secondary {
  background: transparent;
  color: var(--deep);
  border: 1px solid var(--olive);
}
.deletion-form .button-secondary:hover,
.deletion-form .button-secondary:focus-visible {
  background: var(--cream);
}
.deletion-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.deletion-form .is-hidden,
.deletion-form form[hidden] { display: none; }
.form-status {
  margin: 0.9rem 0 0;
  min-height: 1.4em;
}
.form-status.is-success {
  color: var(--deep);
  background: rgba(90, 98, 65, 0.12);
  border-radius: 0.45rem;
  padding: 0.65rem 0.75rem;
}
.form-status.is-error {
  color: #7a3b28;
  background: rgba(194, 122, 90, 0.18);
  border-radius: 0.45rem;
  padding: 0.65rem 0.75rem;
}
.form-status.is-pending { color: var(--ink); }
