/* =========================================================
   Thassos.sk - base.css
   Design tokens, reset, typografia
   ========================================================= */

:root {
  /* --- Farby ----------------------------------------------- */
  --c-bg:          #FAF7F2;
  --c-bg-warm:     #F2EBDF;
  --c-bg-deep:     #ECE4D5;
  --c-paper:       #FFFFFF;
  --c-ink:         #1B2A33;
  --c-ink-soft:    #4A5760;
  --c-ink-muted:   #7A858C;

  --c-aegean:      #1B4965;
  --c-aegean-deep: #0F2C40;
  --c-turquoise:   #5FA8D3;
  --c-turquoise-l: #BEE0F1;
  --c-olive:       #7A8B69;
  --c-olive-deep:  #4F5E45;
  --c-terracotta:  #C57B57;
  --c-terracotta-d:#9A5A3D;
  --c-gold:        #B89968;
  --c-gold-soft:   #E3D2B0;
  --c-line:        #E0D8C8;
  --c-line-soft:   rgba(27, 73, 101, 0.12);

  /* Sémantické */
  --c-text:        var(--c-ink);
  --c-text-soft:   var(--c-ink-soft);
  --c-text-muted:  var(--c-ink-muted);
  --c-primary:     var(--c-aegean);
  --c-accent:      var(--c-terracotta);

  /* --- Typografia ----------------------------------------- */
  --ff-serif:  'Cormorant Garamond', 'Cormorant', 'Playfair Display', 'Georgia', serif;
  --ff-sans:   'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;

  --fs-xs:     0.75rem;     /* 12 */
  --fs-sm:     0.875rem;    /* 14 */
  --fs-base:   1rem;        /* 16 */
  --fs-md:     1.125rem;    /* 18 */
  --fs-lg:     1.375rem;    /* 22 */
  --fs-xl:     1.75rem;     /* 28 */
  --fs-2xl:    2.25rem;     /* 36 */
  --fs-3xl:    3rem;        /* 48 */
  --fs-4xl:    3.75rem;     /* 60 */
  --fs-5xl:    clamp(3rem, 7vw, 5.5rem);

  --lh-tight:  1.1;
  --lh-snug:   1.3;
  --lh-base:   1.6;
  --lh-loose:  1.75;

  --tracking-tight: -0.01em;
  --tracking-base:  0;
  --tracking-wide:  0.08em;
  --tracking-wider: 0.18em;

  /* --- Spacing -------------------------------------------- */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;

  /* --- Layout --------------------------------------------- */
  --container:        1240px;
  --container-narrow: 880px;
  --container-text:   68ch;
  --gutter:           clamp(1rem, 4vw, 2rem);

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(15, 44, 64, 0.06);
  --shadow:     0 6px 24px rgba(15, 44, 64, 0.08);
  --shadow-lg:  0 24px 60px rgba(15, 44, 64, 0.14);

  /* --- Animácia ------------------------------------------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:      150ms;
  --t-base:      300ms;
  --t-slow:      600ms;

  /* --- Z-index ------------------------------------------- */
  --z-header:   100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;
}

/* =========================================================
   Reset
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--c-aegean);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--c-terracotta);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--c-line);
  margin: var(--sp-12) 0;
}

::selection {
  background: var(--c-turquoise-l);
  color: var(--c-aegean-deep);
}

:focus-visible {
  outline: 2px solid var(--c-turquoise);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   Typografia
   ========================================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--ff-serif);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--c-aegean-deep);
  margin: 0 0 0.5em;
}

h1 { font-size: var(--fs-5xl); font-weight: 500; }
h2 { font-size: var(--fs-3xl); font-weight: 500; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--c-terracotta);
  margin-bottom: var(--sp-4);
}

.eyebrow--light { color: var(--c-gold-soft); }
.eyebrow--olive { color: var(--c-olive); }

.lead {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--c-aegean);
  font-weight: 400;
  font-style: italic;
}

.muted { color: var(--c-text-muted); }
.center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wide); }

.serif { font-family: var(--ff-serif); }
.italic { font-style: italic; }

/* Decorative divider with star */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-10) auto;
  color: var(--c-gold);
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: currentColor;
  opacity: 0.5;
}
.divider svg { width: 14px; height: 14px; }

/* =========================================================
   Container & utility
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--text   { max-width: var(--container-text); }

.section { padding-block: var(--sp-24); }
.section--sm { padding-block: var(--sp-16); }
.section--lg { padding-block: var(--sp-32); }

.section--cream { background: var(--c-bg-warm); }
.section--deep  { background: var(--c-aegean-deep); color: var(--c-bg); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--c-paper); }
.section--deep .eyebrow { color: var(--c-gold-soft); }

.grid { display: grid; gap: var(--sp-6); }
.flex { display: flex; }

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  :root {
    --fs-3xl: 2rem;
    --fs-2xl: 1.625rem;
    --fs-xl:  1.25rem;
  }
  .section { padding-block: var(--sp-16); }
  .section--lg { padding-block: var(--sp-20); }
}
