:root {
  --primary: #2f6f68;
  --primary-dark: #245852;
  --secondary: #f2a65a;
  --accent: #f8d57e;
  --background: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --text: #1f2a2a;
  --text-soft: #64706f;
  --border: #dfe7e3;
  --shadow: 0 24px 70px rgba(27, 53, 50, .14);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(248, 213, 126, .42), transparent 25rem),
    radial-gradient(circle at 88% 78%, rgba(47, 111, 104, .13), transparent 28rem),
    var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header,
footer {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.brand img {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(47, 111, 104, .2);
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 700;
}

.header-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions { gap: 16px; }

.language-switcher select {
  min-width: 104px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
}

main {
  width: min(calc(100% - 40px), 1180px);
  display: grid;
  place-items: center;
  flex: 1;
  margin: 0 auto;
  padding: 42px 0 64px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
  overflow: hidden;
  padding: clamp(24px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 34px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: var(--secondary);
}

h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.lead {
  max-width: 600px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(47, 111, 104, .24);
}

.button--primary:hover { background: var(--primary-dark); }

.button--secondary {
  color: var(--primary-dark);
  border-color: var(--border);
  background: var(--surface);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 166, 90, .48);
  outline-offset: 4px;
}

.small-note {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 650;
}

.work-card__visual {
  position: relative;
  margin: 0;
}

.work-card__visual::before {
  position: absolute;
  z-index: -1;
  width: 75%;
  aspect-ratio: 1;
  right: -12%;
  top: -16%;
  content: "";
  border-radius: 50%;
  background: rgba(248, 213, 126, .5);
}

.work-card__visual img {
  width: 100%;
  height: auto;
  display: block;
  border: 8px solid var(--surface);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(27, 53, 50, .16);
  transform: rotate(1.4deg);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 26px;
  color: var(--text-soft);
  font-size: .86rem;
}

@media (max-width: 900px) {
  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card__visual {
    width: min(100%, 680px);
    grid-row: 1;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), 1180px);
  }

  .brand small,
  .header-link { display: none; }

  main { padding-top: 20px; }

  .work-card {
    gap: 28px;
    border-radius: 24px;
  }

  .work-card__visual img {
    border-width: 5px;
    border-radius: 20px;
  }

  .actions,
  .button { width: 100%; }

  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
