@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root { --oranssi: #E67A1D; --musta: #101010; --kalkki: #F4F1EA; --yo: #1F3550; }
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: var(--yo); }
body { color: var(--kalkki); font-family: "Literata", Georgia, serif; }
a:focus-visible { outline: 3px solid var(--oranssi); outline-offset: 4px; }

.hero { position: relative; min-height: max(100vh, 100svh); overflow: hidden; isolation: isolate; }
.hero__background { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(31, 53, 80, 0.6) 0%, rgba(31, 53, 80, 0.26) 48%, rgba(31, 53, 80, 0.05) 78%), linear-gradient(180deg, rgba(16, 16, 16, 0.28), transparent 22%); }
.hero__bar { display: flex; width: min(84rem, calc(100% - 4rem)); margin: 0 auto; padding: 1.4rem 0; align-items: center; justify-content: space-between; gap: 2rem; }
.hero__brand { display: grid; flex: 0 0 auto; width: 4.8rem; height: 3rem; place-items: center; border: 1px solid var(--oranssi); padding: 0.35rem 0.7rem; background: var(--kalkki); }
.hero__brand img { display: block; width: 100%; max-height: 100%; object-fit: contain; }
.hero nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem clamp(0.9rem, 2.1vw, 2rem); }
.hero nav a { color: var(--kalkki); font-size: clamp(0.55rem, 0.65vw, 0.69rem); font-weight: 600; letter-spacing: 0.11em; text-decoration: none; text-shadow: 0 1px 8px rgba(16, 16, 16, 0.45); }
.hero__content { position: absolute; top: 48%; left: max(2rem, calc((100% - 84rem) / 2)); width: min(47rem, calc(100% - 4rem)); transform: translateY(-50%); }
.hero h1 { max-width: 10.8ch; margin: 0; font: 400 clamp(4.2rem, 7vw, 7.35rem) / 0.88 "Instrument Serif", Georgia, serif; letter-spacing: -0.038em; text-wrap: balance; text-shadow: 0 2px 18px rgba(16, 16, 16, 0.3); }
.hero__content p { margin: 1.5rem 0 0; font-size: clamp(0.96rem, 1.25vw, 1.15rem); line-height: 1.55; text-shadow: 0 1px 10px rgba(16, 16, 16, 0.45); }
.hero__cta { display: inline-flex; min-height: 3.25rem; margin-top: 1.8rem; align-items: center; justify-content: center; padding: 0.8rem 1.35rem; color: var(--kalkki); background: var(--oranssi); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.13em; text-decoration: none; text-shadow: -1px -1px 0 var(--musta), 1px -1px 0 var(--musta), -1px 1px 0 var(--musta), 1px 1px 0 var(--musta); }

@media (max-width: 760px) {
  .hero__bar { width: calc(100% - 2rem); padding-top: 1rem; align-items: flex-start; gap: 1rem; }
  .hero__brand { width: 4rem; height: 2.65rem; }
  .hero nav { max-width: 15rem; gap: 0.35rem 0.8rem; }
  .hero nav a { font-size: 0.49rem; letter-spacing: 0.08em; }
  .hero__content { left: 1rem; width: calc(100% - 2rem); top: 52%; }
  .hero h1 { max-width: 9.3ch; font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero__content p { max-width: 24rem; font-size: 0.9rem; }
  .hero__cta { min-height: 3rem; font-size: 0.65rem; }
}

@media (max-height: 600px) {
  .hero__content { top: 56%; }
  .hero h1 { font-size: clamp(2.7rem, 9vh, 4.25rem); }
  .hero__content p { margin-top: 0.8rem; }
  .hero__cta { margin-top: 0.9rem; }
}
