/* saavet designs · base: tokens, reset, type, nav, buttons, handwriting, motion rules */
:root {
  --paper: #f7f9f8;
  --deep: #4d6863;
  --sage: #799b96;
  --soft: #c1d0cb;
  --mist: #e3e9e6;
  --olive: #586a54;
  --ochre: #c9b850;
  --terra: #a65d45;
  --apple: #74703e;
  --font-note: 'saavet note', 'saavet note fb', 'Alegreya Sans', sans-serif;
  --ink: #2e3a31;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(46, 58, 49, .06), 0 10px 30px -12px rgba(46, 58, 49, .22);
  --shadow-lift: 0 2px 4px rgba(46, 58, 49, .06), 0 28px 50px -18px rgba(46, 58, 49, .32);
  --font-display: "saavet titles", "Alegreya", Georgia, serif;
  --font-body: 'saavet sans', "Alegreya Sans", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --r-card: 6px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-paper: cubic-bezier(.65, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) { margin: 0; }
:where(h1, h2, h3, h4, p, figure, ul, ol, blockquote) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
:where(img, svg, video) { display: block; max-width: 100%; }
:where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(a) { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--deep); color: var(--paper); }
.skip:focus { top: 16px; }

.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 70px); line-height: 1.04; letter-spacing: -.015em; color: var(--deep); }
.h2 i { font-style: italic; }
.dot { color: var(--ochre); }

/* wordmark: Alegreya lowercase, saavet in italic */
.wordmark { font-family: var(--font-display); font-size: 22px; letter-spacing: .005em; line-height: 1; white-space: nowrap; }
.wordmark i { font-style: italic; }
/* in the menu bar the name is written in her hand */
.wordmark--hand { font-family: var(--font-note); font-size: 26px; letter-spacing: .01em; transform: translateY(2px); }

/* the brush mark: soft sage behind, sage in front */
.mark__back { fill: var(--soft); }
.mark__front, .mark__tail { fill: var(--sage); }

/* her handwriting, always an image */
.hw { display: inline-block; height: auto; max-width: none; pointer-events: none; user-select: none; }
.hw { overflow: visible; }
.hw text { font-family: 'saavet hand', 'saavet note fb', sans-serif; font-size: 1000px; }
.hw--deep { fill: var(--deep); }
.hw--sage { fill: var(--sage); }
.hw--paper { fill: var(--paper); }

/* nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--ink); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-mark { width: 42px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 16px; }
.nav__links a { position: relative; z-index: 0; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: -5px; right: -5px; bottom: 3px; height: .62em; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 9C30 5 70 8 110 6S180 5 197 8L198 19C160 21 120 18 80 20S20 21 2 18Z' fill='%23c1d0cb' fill-opacity='.9'/%3E%3C/svg%3E") no-repeat center / 100% 100%; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; position: relative; z-index: 61; min-height: 44px; padding: 0 4px; font-size: 16px; }

/* mobile menu sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--deep); color: var(--paper); display: flex; align-items: center; overflow: hidden; }
.sheet[hidden] { display: none; }
.sheet__pat { position: absolute; inset: -40px; background: var(--sage); -webkit-mask: url(../img/pattern.webp) 0 0 / 520px repeat; mask: url(../img/pattern.webp) 0 0 / 520px repeat; opacity: .3; }
.sheet__in { position: relative; display: flex; flex-direction: column; gap: 14px; }
.sheet__in > a { font-family: var(--font-display); font-size: clamp(38px, 10vw, 56px); line-height: 1.1; }
.sheet__mail { margin-top: 24px; font-size: 17px; opacity: .85; }
.js .sheet.is-open .sheet__in > a { animation: sheet-in .6s var(--ease-out) both; }
.js .sheet.is-open .sheet__in > a:nth-child(2) { animation-delay: .05s; }
.js .sheet.is-open .sheet__in > a:nth-child(3) { animation-delay: .1s; }
.js .sheet.is-open .sheet__in > a:nth-child(4) { animation-delay: .15s; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .nav { z-index: 70; color: var(--paper); }
body.menu-open .nav-mark .mark__front, body.menu-open .nav-mark .mark__tail { fill: var(--paper); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; align-items: center; }
}

/* buttons: pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--font-body); font-weight: 500; font-size: 17px; transition: transform .35s var(--ease-out), background-color .3s, color .3s; }
.btn--primary { background: var(--deep); color: var(--paper); }
.btn--primary:hover { background: var(--ink); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(1px) scale(.98); }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* footer */
.foot { border-top: 1px solid var(--mist); padding-block: 28px 40px; font-size: 15px; color: var(--deep); }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; }
.foot a:not(.wordmark) { text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: var(--deep); }

/* reveal: hidden only once JS has run; always visible without JS or with reduced motion */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: inline-block; }
.js .lines-anim .line > span { transform: translateY(140%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .lines-anim.is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .lines-anim .line > span { opacity: 1 !important; transform: none !important; }
}

/* the marker highlight (from direction Β): a soft sage marker swipe behind words */
.mk { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 9C30 5 70 8 110 6S180 5 197 8L198 19C160 21 120 18 80 20S20 21 2 18Z' fill='%23c1d0cb' fill-opacity='.9'/%3E%3C/svg%3E") no-repeat 0 92% / 0% .62em; color: inherit; padding: 0 .12em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1s var(--ease-out) var(--d, 0s); }
.is-in .mk, .mk.is-on, html:not(.js) .mk { background-size: 100% .62em; }
.mk-hover { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 9C30 5 70 8 110 6S180 5 197 8L198 19C160 21 120 18 80 20S20 21 2 18Z' fill='%23c1d0cb' fill-opacity='.9'/%3E%3C/svg%3E") no-repeat 0 92% / 0% .55em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .6s var(--ease-out); }
a:hover .mk-hover, a:focus-visible .mk-hover { background-size: 100% .55em; }
.btn__hw { height: 20px; width: auto; margin-right: -4px; }
.foot__handle .hw { height: 30px; width: auto; }

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

/* ---------- her pictures stay hers: no dragging, saving or printing them. The text can be selected and copied ---------- */
img, video, svg, canvas, picture { -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media print {
  body > * { display: none !important; }
  body::before { content: "Τα σχέδια του saavetdesigns.com δεν εκτυπώνονται. Για ό,τι χρειάζεσαι, γράψε μου στο contact@saavetdesigns.com."; display: block; padding: 40px; font: 16px/1.5 sans-serif; color: #2e3a31; }
}

/* ---------- «saavet titles» everywhere the display face is: titles take the 500 weight, <strong> the 700.
   Her hand has no italic, so the italic asides stand upright instead of a fake slant ---------- */
html { font-synthesis-style: none; }
.h2, .hero__title { letter-spacing: 0; }
/* «Ποια είμαι»: the lead a little fuller, and its key words picked out */
.about__lead { font-weight: 500; }
.about__lead strong { font-weight: 700; }
.about__key { color: var(--terra); }
.about__hl { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 9C30 5 70 8 110 6S180 5 197 8L198 19C160 21 120 18 80 20S20 21 2 18Z' fill='%23c1d0cb' fill-opacity='.9'/%3E%3C/svg%3E") no-repeat 0 92% / 0% .62em; padding: 0 .12em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s var(--ease-out) .5s; }
.is-in .about__hl, html:not(.js) .about__hl { background-size: 100% .62em; }

/* language switcher (ΕΛ / EN): printed only once Polylang has a second language */
.langs { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; letter-spacing: .06em; }
.langs a, .langs__on { padding: 6px 2px; }
.langs__on { font-weight: 700; }
.langs a { opacity: .7; transition: opacity .2s; }
.langs a:hover, .langs a:focus-visible { opacity: 1; }
.langs__sep { opacity: .4; }
.nav__in:has(.nav__langs) .nav__links { margin-left: auto; }
.sheet__langs { margin-top: 8px; font-size: 17px; }
@media (max-width: 860px) { .nav__langs { margin-left: auto; } }

/* the cookie note: a small sheet of paper, bottom left; accept and decline weigh the same */
.consent { position: fixed; left: var(--gutter); bottom: 20px; z-index: 70; width: min(420px, calc(100% - 2 * var(--gutter))); padding: 20px 22px 18px; background: var(--paper); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-lift); font-size: 15.5px; line-height: 1.5; opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.consent.is-on { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__text { margin: 0 0 14px; }
.consent__text a { text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.consent__btn { min-height: 42px; padding: 0 20px; font-size: 15.5px; cursor: pointer; }
.consent__btn--no { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.consent__btn--no:hover { background: var(--mist); }
.foot__consent { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 560px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
