@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  color: #17211b;
  background: #f5f1e8;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }

main {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 91, 53, .18), transparent 25rem),
    #f5f1e8;
}

.nav, .hero, .features, footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: block;
  position: relative;
  width: clamp(200px, 26vw, 280px);
  aspect-ratio: 1.426;
  overflow: hidden;
  text-decoration: none;
}
.brand img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 226.55%;
  max-width: none;
  height: auto;
  transform: translate(-27.93%, -30.76%);
}
.eyebrow { color: #e64e2a; }
.nav-link { font-weight: 600; text-underline-offset: 5px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.contact-trigger { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(56vw, 640px);
  column-gap: clamp(12px, 2vw, 24px);
  align-items: center;
  padding: 5vh 0 14vh;
}
.hero > .eyebrow { grid-column: 1 / -1; }
.hero > h1 { grid-column: 1; grid-row: 2; }
.hero > .lead { grid-column: 1 / -1; grid-row: 3; }
.hero > .button {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  min-height: 80px;
  padding: 24px 32px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.35;
  text-align: center;
}
.hero > .button:focus-visible {
  outline: 3px solid #e64e2a;
  outline-offset: 5px;
}
.eyebrow {
  margin: 0 0 22px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 { font-family: Manrope, sans-serif; }
h1 {
  display: grid;
  row-gap: 13px;
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.27rem, 6vw, 5.13rem);
  line-height: 1;
  letter-spacing: -.065em;
}
.headline-line { display: contents; }
.headline-word { display: block; }

.lead {
  max-width: 620px;
  margin: 34px 0;
  color: #566159;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 15px 23px;
  border-radius: 999px;
  color: white;
  background: #17211b;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #e64e2a; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cfc9bd;
  border-bottom: 1px solid #cfc9bd;
}

.feature { padding: 42px 34px 50px 0; }
.feature + .feature { padding-left: 34px; border-left: 1px solid #cfc9bd; }
.feature span { color: #e64e2a; font-size: .8rem; font-weight: 700; }
.feature h2 { margin: 40px 0 12px; font-size: 1.7rem; }
.feature p { margin: 0; color: #626a64; line-height: 1.6; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 34px 0 44px;
  color: #687069;
  font-size: .9rem;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(104px, 28vw, 180px);
    column-gap: 12px;
    padding-top: 3vh;
  }
  .hero > .button {
    width: 100%;
    min-height: 104px;
    padding: 18px 12px;
    border-radius: 0;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
  }
  h1 {
    row-gap: 8px;
    font-size: clamp(1.65rem, 6.4vw, 3.33rem);
    line-height: 1;
    letter-spacing: -.055em;
  }
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 32px 0; border-left: 0; }
  .feature + .feature { border-top: 1px solid #cfc9bd; }
  .feature h2 { margin-top: 20px; }
}

/* Keep the label and keyboard outline clear of the map's irregular edges. */
.hero > .button {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  aspect-ratio: 300 / 237;
  min-height: 0;
  padding: 18% 16% 22%;
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.hero > .button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #17211b;
  -webkit-mask: url('/lithuania.svg') center / contain no-repeat;
  mask: url('/lithuania.svg') center / contain no-repeat;
  transition: background .2s ease;
}
.hero > .button:hover::before { background: #e64e2a; }
@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr) 52%; column-gap: 8px; }
  .hero > h1 { font-size: clamp(1.3rem, 5.2vw, 2.6rem); }
  .hero > .button {
    width: 100%;
    padding: 18% 14% 22%;
    font-size: clamp(.9rem, 3vw, 1.4rem);
  }
}

.contact-overlay { position: fixed; z-index: 1000; inset: 0; display: none; place-items: center; padding: 16px; background: rgba(23, 33, 27, .55); }
.contact-toggle { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-toggle:checked + .contact-overlay { display: grid; }
.contact-form { position: relative; display: grid; gap: 10px; padding: 36px; }
.contact-overlay .contact-form { width: min(100%, 480px); border-radius: 20px; color: #17211b; background: #f5f1e8; box-shadow: 0 24px 70px rgba(23, 33, 27, .28); }
.contact-form .eyebrow { margin: 0; }
.contact-form h2 { margin: 4px 0 16px; font-size: 2rem; letter-spacing: -.04em; }
.contact-form label { font-size: .9rem; font-weight: 700; }
.contact-form input:not(.honeypot), .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #b8b5ac; border-radius: 8px; color: inherit; background: #fffdf8; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(230, 78, 42, .35); border-color: #e64e2a; }
.message-count { margin-top: -5px; color: #687069; font-size: .8rem; text-align: right; }
.honeypot { position: absolute; left: -9999px; }
.turnstile-container { min-height: 65px; margin-top: 4px; }
.turnstile-container > div { margin-inline: auto; }
.contact-submit { margin-top: 12px; padding: 14px 20px; border: 0; border-radius: 999px; color: #fff; background: #17211b; font: inherit; font-weight: 700; cursor: pointer; }
.contact-submit:hover { background: #e64e2a; }
.contact-submit:disabled { cursor: wait; opacity: .7; }
.contact-status { min-height: 1.3em; margin: 2px 0 0; color: #566159; font-size: .9rem; }
.contact-form.is-sent { min-height: 280px; place-content: center; text-align: center; }
.contact-form.is-sent > :not(.contact-status) { display: none; }
.contact-form.is-sent .contact-status { color: #17211b; font-family: Manrope, sans-serif; font-size: 1.35rem; font-weight: 700; }
.dialog-close { position: absolute; top: 14px; right: 16px; color: #566159; font-size: 2rem; line-height: 1; cursor: pointer; }
.hero > .button > .button-label { transform: translateY(-30px); }

.home-reading { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 54px; }
.home-reading h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; margin: 0 0 18px; }
.reading-intro { max-width: 720px; color: #43564a; line-height: 1.75; font-size: 1.1rem; }
.reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.reading-grid article { border: 1px solid #d6dccc; border-radius: 14px; background: #fffdf7; padding: 26px; display: flex; flex-direction: column; }
.reading-grid article > span { font-size: .7rem; letter-spacing: .1em; font-weight: 700; color: #9e391f; }
.reading-grid h3 { font-size: 1.35rem; line-height: 1.3; margin: 16px 0; }
.reading-grid p, .home-method p { line-height: 1.75; color: #43564a; }
.reading-grid article > a { margin-top: auto; font-weight: 700; color: #23583f; text-underline-offset: 4px; }
.home-method { max-width: 760px; margin-top: 36px; }
.home-footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; max-width: 690px; }
.contact-privacy { font-size: .8rem; line-height: 1.5; color: #43564a; }
@media (max-width: 900px) { .nav { flex-wrap: wrap; gap: 20px; } .nav-links { flex-wrap: wrap; gap: 16px; } .reading-grid { grid-template-columns: 1fr; } footer { flex-wrap: wrap; gap: 20px; } }

@media (max-width: 720px) {
  .hero > .button { left: -8px; padding: 20% 14%; }
  .hero > .button > .button-label { transform: none; }
}
