/* Shared tokens, type, header and footer for mastoraskonta.com. */

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

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

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

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../resources/fonts/commissioner-greek-400.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../resources/fonts/commissioner-greek-500.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../resources/fonts/commissioner-greek-600.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../resources/fonts/eb-garamond-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../resources/fonts/eb-garamond-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../resources/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../resources/fonts/eb-garamond-greek-400.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../resources/fonts/eb-garamond-greek-500.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../resources/fonts/eb-garamond-greek-400-italic.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

:root {
  --ink: #1c1612;
  --ink-soft: #3a332c;
  --muted: #6a6258;
  --paper: #f4f1ea;
  --paper-deep: #e7e1d6;
  --line: rgba(28, 22, 18, 0.16);
  --photo: #f7f4ee;
  --photo-dim: rgba(28, 22, 18, 0.42);
  --header-h: 4.25rem;
  --sans: "Commissioner", "Segoe UI", sans-serif;
  --serif: "EB Garamond", "Palatino Linotype", Palatino, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*,
*::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;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Closed selects use the site chevron. Generated pages inherit this; do not restyle them as native controls. */
select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 1.8rem 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231c1612' stroke-width='1.4' stroke-linecap='square' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 0.7rem 0.45rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select option,
select optgroup {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

/* Custom list. The native popup cannot be styled, so JS replaces it with this panel. */
.site-select {
  position: relative;
  width: 100%;
  text-transform: none;
  letter-spacing: 0;
}

.site-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.site-select__button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 1.8rem 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.site-select__button::after {
  content: "";
  position: absolute;
  right: 0.1rem;
  top: 50%;
  width: 0.7rem;
  height: 0.45rem;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231c1612' stroke-width='1.4' stroke-linecap='square' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-select.is-open .site-select__button::after {
  transform: translateY(-50%) rotate(180deg);
}

.site-select__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid rgba(28, 22, 18, 0.28);
  box-shadow: none;
  max-height: 16rem;
  overflow: auto;
}

.site-select.is-up .site-select__list {
  top: auto;
  bottom: calc(100% + 0.35rem);
}

.site-select__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.site-select__option[aria-selected="true"] {
  background: var(--paper-deep);
  font-style: italic;
}

.site-select__option:hover,
.site-select__option:focus-visible {
  background: var(--paper-deep);
  font-style: italic;
  outline: none;
}

.site-select__option:disabled {
  color: var(--muted);
  cursor: default;
  font-style: normal;
  background: transparent;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 80;
  transform: translateY(-120%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.85rem 1.5rem;
  color: var(--photo);
  background: var(--ink);
  transition: background 0.8s var(--ease), color 0.8s var(--ease);
}

.site-header.is-solid {
  background: rgba(244, 241, 234, 0.94);
  color: var(--ink);
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  cursor: pointer;
}

.phone-link {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 8vw 6vw 3rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

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

.footer-line {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: rgba(244, 241, 234, 0.78);
  font-size: 1.05rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 234, 0.2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-note {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  color: rgba(244, 241, 234, 0.62);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 12vh 1.5rem 18vh;
    background: var(--paper);
    color: var(--ink);
    mix-blend-mode: normal;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  body.nav-open .site-header {
    color: var(--ink);
    background: var(--paper);
  }

  .site-nav a {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 12vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    text-transform: none;
    line-height: 1.05;
  }

  .phone-link {
    right: 1rem;
    bottom: 1rem;
  }
}

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

  .site-header {
    transition: none;
  }
}
