/* Shared tokens, masthead, and footer.
   Brand colours are the site's own: paper #ffffff, ink #2a211c, pine #3d6b58.
   Display type is self-hosted Source Serif 4. Body type is self-hosted Source Sans 3. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-serif-4-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-serif-4-greek-italic.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-serif-4-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-serif-4-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-sans-3-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../resources/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ivory: #ffffff;
  --ink: #2a211c;
  --muted: #6e645c;
  --rule: rgba(42, 33, 28, 0.16);
  --accent: #3d6b58;
  --accent-hover: #315847;
  --danger: #8a3d32;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 4.6rem;
  --page: min(1480px, calc(100% - 8vw));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 430;
  text-rendering: optimizeLegibility;
}

body.is-menu-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 80;
  padding: 0.55rem 0.8rem;
  background: var(--ivory);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0 4vw;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.flag {
  display: inline-block;
  width: 22px;
  height: 15px;
  flex: none;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.flag-gr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 18'%3E%3Crect width='27' height='18' fill='%230d5eaf'/%3E%3Cpath stroke='%23fff' stroke-width='2' d='M0 1h27M0 5h27M0 9h27M0 13h27M0 17h27'/%3E%3Crect width='10' height='10' fill='%230d5eaf'/%3E%3Cpath stroke='%23fff' stroke-width='2' d='M0 5h10M5 0v10'/%3E%3C/svg%3E");
}

.flag-cy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23fff'/%3E%3Cpath fill='%23d57800' d='M8 6c2 0 4 1 6 1s4-1 6-1c1 2 1 4 0 6-2 2-4 3-6 3s-4-1-6-3c-1-2-1-4 0-6z'/%3E%3Cpath fill='%234a7c23' d='M6 14c2 1 4 1 6 0M18 14c2 1 4 1 6 0'/%3E%3C/svg%3E");
}

.footer-brand .flag {
  margin-right: 0.4rem;
  vertical-align: -2px;
}

.wordmark:hover {
  color: var(--ink);
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 240ms var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
  opacity: 0.72;
}

.site-nav a.nav-action {
  color: var(--accent);
}

.site-footer {
  padding: 4.5rem 4vw 2rem;
  border-top: 1px solid var(--rule);
  background: var(--ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  max-width: 1480px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 1rem;
}

.footer-lead,
.footer-label,
.colophon {
  margin: 0;
}

.footer-lead {
  max-width: 28rem;
  color: var(--muted);
}

.footer-label {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.colophon {
  max-width: 1480px;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 6rem 8vw 12vh;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms;
  }

  .is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    font-family: var(--serif);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 460;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .site-nav,
  .site-nav a,
  .wordmark {
    transition: none;
  }
}

/* Directory card fixed to the corner of a blog article. */
.blog-float {
  position: fixed;
  z-index: 30;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  width: min(308px, calc(100vw - 36px));
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(42, 33, 28, 0.16);
  animation: blog-float-in 0.28s ease;
}

.blog-float-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-float-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.blog-float-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 107, 88, 0.16);
}

.blog-float-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.blog-float-close:hover,
.blog-float-close:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.blog-float-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-float-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 14px;
}

.blog-float-amount {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.blog-float-unit {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-float-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-bottom: 12px;
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.blog-float-cta:hover,
.blog-float-cta:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}

.blog-float-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-float-chips li {
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.blog-float .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:has(.site-header.is-open) .blog-float,
body:has(.site-header.is-menu-open) .blog-float,
body:has(.site-nav.is-open) .blog-float {
  display: none;
}

@keyframes blog-float-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .blog-float {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: min(280px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-float {
    animation: none;
  }
}

@media print {
  .blog-float {
    display: none;
  }
}
