/*
Theme Name: Hiki ja Massi One
Theme URI: https://hikijamassi.fi/
Author: Hiki ja Massi
Description: A minimal one-page WordPress theme built around one athlete, one image and one clear contact action.
Version: 3.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: hiki-ja-massi
*/

:root {
  --bg: #050505;
  --text: #f5f3ee;
  --muted: #aaa69d;
  --line: rgba(245, 243, 238, .18);
  --max: 1280px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
::selection { background: var(--text); color: var(--bg); }

.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  background: rgba(5,5,5,.92);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.custom-logo { width: auto; max-width: 180px; max-height: 42px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a:not(.nav-contact) {
  color: rgba(245,243,238,.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--text); }
.nav-contact {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-contact:hover { background: var(--text); color: var(--bg); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #111;
}
.hero-media,
.hero-placeholder {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.08);
}
.hero-placeholder { background: linear-gradient(135deg, #2c2c2c, #090909 70%); }
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.46) 52%, rgba(0,0,0,.08) 100%),
    linear-gradient(0deg, rgba(0,0,0,.80) 0%, transparent 48%);
}
.hero-inner { padding: 148px 0 56px; }
.eyebrow {
  margin: 0 0 18px;
  color: rgba(245,243,238,.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero-title {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(62px, 12vw, 166px);
  line-height: .80;
  letter-spacing: -.078em;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 610px;
  margin: 30px 0 0;
  font-size: clamp(18px, 2.1vw, 27px);
  letter-spacing: -.025em;
}
.hero-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,243,238,.34);
}
.representing { display: grid; gap: 3px; }
.representing span {
  color: rgba(245,243,238,.62);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.representing strong {
  font-size: clamp(20px, 2.3vw, 31px);
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.text-link::after { content: '↗'; font-size: 14px; }

.athlete {
  padding: 128px 0;
  border-top: 1px solid var(--line);
}
.athlete-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
  align-items: start;
}
.section-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.athlete-name {
  margin: 0;
  max-width: 950px;
  font-size: clamp(52px, 9vw, 132px);
  line-height: .84;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.athlete-sport {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.athlete-statement {
  max-width: 820px;
  margin: 48px 0 0;
  font-size: clamp(24px, 3.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.athlete-link { margin-top: 38px; }

.contact {
  padding: 132px 0 66px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact h2 {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(54px, 10.5vw, 148px);
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.contact-copy {
  max-width: 620px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-button:hover { background: transparent; color: var(--text); }
.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }

.page-shell { min-height: 75vh; padding: calc(var(--header) + 84px) 0 100px; }
.page-shell h1 { font-size: clamp(52px, 8vw, 110px); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.entry-content { max-width: 820px; color: var(--muted); }

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 760px) {
  :root { --header: 66px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-header { background: rgba(5,5,5,.78); border-color: var(--line); backdrop-filter: blur(10px); }
  .brand { font-size: 16px; }
  .custom-logo { max-width: 136px; max-height: 32px; }
  .main-nav { gap: 12px; }
  .main-nav a:not(.nav-contact) { display: none; }
  .nav-contact { min-height: 36px; padding-inline: 12px; font-size: 9px; }

  .hero { min-height: 100svh; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.58) 56%, rgba(0,0,0,.16) 100%);
  }
  .hero-media { object-position: 58% center; }
  .hero-inner { padding: 108px 0 30px; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .hero-title {
    font-size: clamp(52px, 20vw, 91px);
    line-height: .83;
    overflow-wrap: anywhere;
  }
  .hero-copy { max-width: 96%; margin-top: 22px; font-size: clamp(17px, 5vw, 22px); }
  .hero-meta { align-items: start; flex-direction: column; gap: 20px; margin-top: 32px; }
  .representing strong { font-size: 22px; }

  .athlete { padding: 76px 0; }
  .athlete-grid { grid-template-columns: 1fr; gap: 26px; }
  .athlete-name { font-size: clamp(48px, 16vw, 76px); overflow-wrap: anywhere; }
  .athlete-statement { margin-top: 30px; font-size: clamp(24px, 8vw, 37px); }
  .athlete-link { margin-top: 30px; }

  .contact { padding: 88px 0 54px; }
  .contact h2 { font-size: clamp(48px, 16vw, 79px); overflow-wrap: anywhere; }
  .contact-copy { margin-top: 24px; font-size: 16px; }
  .contact-button { width: 100%; overflow-wrap: anywhere; }
  .footer-inner { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
