/*
Theme Name: Loomestuudio
Description: Minimal bilingual one-page theme for Loomestuudio OÜ.
Version: 1.0.0
Text Domain: loomestuudio
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --paper: #ffffff;
  --ink: #797975;
  --muted: #888781;
  --line: #e1e0dc;
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --page-width: 1440px;
  --page-gutter: clamp(20px, 3.4vw, 64px);
  --header-height: 82px;
  --footer-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.site-header,
.services,
.site-footer {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--page-width));
  margin-inline: auto;
}

.site-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aaa9a5;
  font-size: 15px;
  letter-spacing: 0.11em;
}

.language-button {
  padding: 8px 3px;
  border: 0;
  background: none;
  color: #aaa9a5;
  cursor: pointer;
  transition: color 160ms ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  color: var(--ink);
}

.language-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.site-main {
  min-height: calc(100svh - var(--header-height) - var(--footer-height));
  display: grid;
  align-items: center;
  padding: clamp(64px, 6vw, 96px) 0;
}

.service-list {
  width: min(75%, 1080px);
  margin-inline: auto;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.25fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: baseline;
  padding: clamp(30px, 2.7vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.service-item h2,
.service-item p {
  margin: 0;
}

.service-item h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.15vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.service-item > p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.email-address {
  white-space: nowrap;
}

.site-footer {
  min-height: var(--footer-height);
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #999994;
  font-size: 15px;
  letter-spacing: 0.035em;
  backdrop-filter: blur(8px);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
    --footer-height: 74px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .site-main {
    min-height: calc(100svh - var(--header-height) - var(--footer-height));
    padding: 56px 0 104px;
  }

  .service-list {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0 30px;
  }

  .service-item h2 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .site-footer {
    min-height: var(--footer-height);
  }
}

@media (max-width: 480px) {
  .site-footer {
    align-items: flex-start;
    padding-top: 18px;
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
