:root {
  --ink: #22262b;
  --muted: #64666a;
  --paper: #f7f6f2;
  --white: #ffffff;
  --stone: #e5e1d8;
  --accent: #7b684d;
  --shell: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--stone);
  background: #f0ede6;
}

.header-inner {
  display: flex;
  min-height: 5.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.5rem;
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 20rem;
  max-width: 100%;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  gap: 1.8rem;
}

nav a {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.intro {
  position: relative;
  display: grid;
  min-height: 34rem;
  overflow: hidden;
  align-items: center;
  background: #25282c url("toimisto-rhr.webp") center / cover no-repeat;
  color: var(--white);
}

.intro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 23, 27, 0.94) 0%, rgba(20, 23, 27, 0.78) 43%, rgba(20, 23, 27, 0.18) 76%, rgba(20, 23, 27, 0.08) 100%);
}

.intro-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 8vw, 6rem);
}

.intro-copy-inner {
  max-width: 34rem;
}

.intro .overline {
  color: #d6c199;
}

.overline {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.lead {
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro .lead {
  color: #ecebea;
}

.primary-link {
  display: inline-block;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid var(--ink);
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: none;
}

.intro .primary-link {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.intro .primary-link:hover {
  border-color: #d6c199;
  color: #d6c199;
}

.primary-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.services {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.section-title h2 {
  max-width: 9ch;
}

.service-list {
  border-top: 1px solid var(--stone);
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(15rem, 1.2fr);
  gap: 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--stone);
}

.service-list h3,
.service-list p {
  margin-bottom: 0;
}

.service-list p {
  color: var(--muted);
}

.contact {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--ink);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.contact .overline {
  color: #c9b58f;
}

.contact-intro h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

address {
  border-top: 1px solid #55585d;
  font-size: 1.125rem;
  font-style: normal;
}

address p {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid #55585d;
}

address span {
  color: #c5c6c9;
  font-size: 1.0625rem;
  font-weight: 500;
}

address a,
address strong {
  overflow-wrap: anywhere;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

address a:hover {
  color: #d8c39c;
}

.site-footer {
  border-top: 1px solid #3c3f43;
  background: var(--ink);
  color: #aeb0b4;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-size: 0.9375rem;
  text-align: center;
}

.footer-company {
  margin: 0;
}

.footer-brand {
  color: #d2c19f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
}

.footer-privacy {
  width: 100%;
}

.footer-privacy summary {
  width: fit-content;
  margin-inline: auto;
  padding: 0.5rem;
  color: #dedfdf;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-privacy summary:hover {
  color: #d2c19f;
}

.footer-privacy summary:focus-visible {
  outline-color: #d2c19f;
}

.privacy-content {
  max-width: 48rem;
  margin: 1rem auto 0;
  padding-block: 1.5rem 0.5rem;
  border-top: 1px solid #55585d;
  color: #dedfdf;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: anywhere;
}

.privacy-content h2 {
  margin-bottom: 0.3rem;
  color: var(--white);
  font-size: 1.75rem;
}

.privacy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #d2c19f;
  font-size: 1.2rem;
}

.privacy-content p {
  margin-bottom: 0.9rem;
}

.privacy-content a {
  text-underline-offset: 0.2rem;
}

.privacy-date {
  color: #aeb0b4;
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .header-inner {
    gap: 1rem;
  }

  nav {
    gap: 0.75rem;
  }

  nav a {
    font-size: 1.0625rem;
  }

  .brand {
    width: 18rem;
  }

  .services-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 32rem;
    background-position: 63% center;
  }

  .intro-copy {
    padding-block: 3.8rem;
  }

  .intro-copy-inner {
    max-width: 31rem;
  }

  .services-layout,
  .contact-layout {
    gap: 2rem;
  }

  .section-title h2 {
    max-width: none;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding-block: 1rem;
    text-align: left;
  }

  .footer-privacy summary {
    margin-inline: 0;
    padding-inline: 0;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.35rem;
    padding-block: 0.75rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
  }

  address p {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

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