@import url('https://fonts.googleapis.com/css2?family=Carrois+Gothic&family=Vina+Sans&display=swap');

@font-face {
  font-family: Sellendra; /* set name */
  src: url(assets/Sellendra.otf); /* url of the font */
font-weight:400;
}

:root {
  --ink: #1B0F1E; --plum: #211027; --plum-light: #39203d;
  --gold: #c6a66d; --gold-pale: #e5d0a2; --cream: #f6f2eb;
  --paper: #fbf9f5; --text: #29232b; --muted: #a99aa7;
  --font1: Carrois Gothic;
  --font2: Sellendra;
  --font3: Vina Sans;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font1); font-weight: 400; font-size: 15px; line-height: 1.8; text-align:justify; }

a:link, a:active, a:visited { color: #512864; text-decoration: none; }
a:hover { color: var(--plum-light); text-decoration: none; }

.horse-facts a:link, .horse-facts a:active, .horse-facts a:visited, .site-header a:link, .site-header a:active, .site-header a:visited { color: var(--gold-pale); text-decoration: none; }
.horse-facts a:hover, .site-header a:hover { color: var(--gold); text-decoration: none; }

.site-header { display: flex; align-items: center; gap: 3.5vw; padding: 10px 3.2% 5px 3.2%; background: #100912; border-bottom: 1px solid rgba(198,166,109,.32); position: relative; z-index: 5; width: 90%; max-width: 1400px; margin: 0 auto; }

.brand { width: 74px; position: relative; display: flex; justify-content: center; align-items: center; color: var(--gold-pale); flex-shrink: 0; height: 70px; }
.brand-letters { font: 47px/1 var(--font2); letter-spacing: -1px; padding-right: 8px; }
.brand-letters span { position: relative; top: 8px; }



.nav { display: flex; justify-content: center; gap: clamp(28px, 3.3vw, 62px); flex: 1; }

.nav a, .header-note { text-transform: uppercase; letter-spacing: .2em; font-size: 15px; white-space: nowrap; font-family: var(--font2); }

.nav a:link, .nav a:active, .nav a:visited { color: #d8cfd7; padding: 10px 0 0 0; transition: color .2s; }

.nav a:hover { color: var(--gold-pale); }

.header-note { color: var(--gold); line-height: 1.8; padding-left: 25px; border-left: 1px solid #765c44; }
.header-note span { display: block; color: #a99aa7; font-size: 8px; letter-spacing: .15em; }
.menu-toggle { display: none; }

.hero { width: 90%; max-width: 1400px; margin: 0 auto; max-height: 400px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 72% 40%, #392735, #120a14 58%, #09070b 100%); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }

.hero-photo { position: absolute; inset: 0 0 0 34%; background-image: url("assets/top.png"); background-size: cover; background-position: center right; }



.hero-copy { position: absolute; z-index: 2; top: 90px; left: 5%; width: 35%; color: var(--cream); text-align:center; font-family: var(--font2); font-size: 16px; letter-spacing: 1px; }

.eyebrow, .section-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .38em; color: var(--gold-pale); }
.eyebrow { display: flex; align-items: center; gap: 15px; }
.eyebrow span { width: 28px; border-top: 1px solid var(--gold); }

h1 { font: 500 clamp(55px, 7vw, 105px)/.79 "Cormorant Garamond", serif; letter-spacing: .025em; text-transform: uppercase; margin: 34px 0 25px; color: #f4eee5; }

h1 em { font-weight: 400; font-style: italic; color: var(--gold-pale); text-transform: none; letter-spacing: -.035em; }

.motto { color: #dfd4c5; font-size: 10px; letter-spacing: .35em; text-transform: uppercase; margin-top: 34px; }
.motto i { color: var(--gold); padding: 0 9px; font-style: normal; }

.text-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 27px; font-size: 9px; text-transform: uppercase; letter-spacing: .2em; padding-bottom: 9px; border-bottom: 1px solid var(--gold); }

.text-link b { color: var(--gold); font-size: 16px; font-weight: 300; }


.profile-layout, .profile-layout2 { width: 90%; max-width: 1400px; margin: 0 auto; background: var(--paper); color: var(--text); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); margin-bottom: 20px; justify-content: flex-start; }
.profile-layout { display: grid; grid-template-columns: minmax(255px, 29.5%) 1fr; }
.profile-layout2 { display: grid; grid-template-columns: 1fr; }

.horse-facts { position: relative; overflow: hidden; padding: 52px 10% 44px 10%; background: radial-gradient(ellipse at 10% 12%, #39203d 0, #1a0e20 42%, #100912 100%); color: var(--cream); }

.pedigree { position: relative; overflow: hidden; padding: 10px 20px; background: radial-gradient(ellipse at 10% 12%, #39203d 0, #1a0e20 42%, #100912 100%); color: var(--cream); }
.haka { font-size: 80px; font-family: var(--font3); }
.pikkuhaka { font-size: 40px; font-family: var(--font3); }

.horse-facts:before, .pedigree:before { content: ""; position: absolute; inset: 0; opacity: .12; mask-image: linear-gradient(135deg, #000, transparent 65%); pointer-events: none; }

.side-heading { position: relative; font: 28px var(--font2); color: var(--gold-pale); text-align: center; }

.side-rule { border-top: 1px solid rgba(198,166,109,.65); margin: 26px 0 28px; }

.facts { margin: 0; position: relative; }
.facts div { margin: 0 0 24px; padding-left: 10px; position: relative; }
.facts div:before { position: absolute; left: 0; top: 0; color: var(--gold); font: 21px "Cormorant Garamond", serif; }
.facts dt { color: var(--gold-pale); text-transform: uppercase; letter-spacing: .12em; font-size: 15px; margin-bottom: 5px; font-family: Sellendra; }
.facts dd { margin: 0; color: #e4dce2; font: 16px var(--font1); }
.side-monogram { border-top: 1px solid rgba(198,166,109,.35); padding-top: 22px; margin-top: 28px; text-align: center; font: 68px/.9 "Cormorant Garamond", serif; color: rgba(198,166,109,.25); letter-spacing: -16px; padding-right: 16px; }
.side-monogram span { position: relative; top: 9px; }
.side-monogram img { height: 120px; }

.biography { padding: 30px 40px; }
.foals { padding: 30px 40px; }
.achievements { display: grid; grid-template-columns: 2fr 1.3fr 1fr; padding: 30px 40px; gap: 50px; }
.achievements img { height: 230px; }
.achievements small {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5em;
    border-radius: 3px;
margin-left: 5px;
}

.footer { font-family: var(--font1); font-size: 13px; text-transform: uppercase; font-weight: 400; letter-spacing: 1px; text-align:center; color: var(--cream); padding: 0 0 10px 0; }

.section-kicker { color: #7b6250; letter-spacing: .25em; display: flex; gap: 15px; align-items: center; font-size: 15px; }
.section-kicker span { width: 68px; border-top: 1px solid #8b7768; }

h2 { margin: 16px 0 2px; font: 500 clamp(36px, 4.2vw, 57px)/1.02 Sellendra; text-transform: uppercase; letter-spacing: .035em; color: #18131a; }
h3 { margin: 16px 0 2px; font: 500 clamp(26px, 4.2vw, 37px)/1.02 Sellendra; text-transform: uppercase; letter-spacing: .035em; color: #18131a; }




.pikkuinfo {
    display: inline-block;
    font-size: 14px;
    line-height: 1.5em;
    border-radius: 3px;
    color: #D2C5BF;
}

.pikkuinfo:before, .achievements small:before {
    content: "[";
}

.pikkuinfo:after, .achievements small:after {
    content: "]";
}

.ruusukkeet { text-align:center; }
.ruusukkeet img { max-height: 130px; margin: 0 5px; }

.kuvagalleria {
  margin: 0px auto 0px auto;
  width: 100%;
  text-align: center;
  margin-top:10px;
}

.kuvagalleria-grid {
  column-count: 4; 
  column-gap: 30px;
}

.kuvagalleria-grid img {
  width: 100%;
  margin-bottom: 16px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kuvagalleria-grid img:hover { transform: scale(1.01); }






.competition-stats { --stat-gold:#c6a66d; --stat-plum:#211027; color:#29232b; }
.stats-intro { max-width:760px; margin:12px 0 25px; color:#756a73; font-size:14px; }
.stats-overview { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:25px 0 28px; }
.stat-card { position:relative; min-height:126px; padding:18px 15px 16px; background:linear-gradient(145deg,#fffdfa,#f1ebe2); border:1px solid rgba(198,166,109,.55); text-align:center; overflow:hidden; }
.stat-card:before,.stat-card:after { content:""; position:absolute; width:35px; height:35px; border-color:rgba(198,166,109,.65); border-style:solid; pointer-events:none; }
.stat-card:before { left:6px; top:6px; border-width:1px 0 0 1px; }
.stat-card:after { right:6px; bottom:6px; border-width:0 1px 1px 0; }
.stat-icon { display:block; color:#9c8054; font-size:18px; line-height:1; margin-bottom:8px; }
.stat-number { display:block; color:#26172b; font:500 28px var(--font1); }
.stat-label { display:block; margin-top:8px; color:#897464; text-transform:uppercase; letter-spacing:.16em; font-size:13px; font-weight: 600; }
.stats-lower { display:grid; grid-template-columns:minmax(0,0.3fr) minmax(0,1fr); gap:22px; margin-bottom:28px; }
.stats-panel { border:1px solid #e3d8c9; background:#fffdfa; padding:19px 20px; min-width:0; }
.stats-panel-title { margin:0 0 17px; color:#342538; font:24px/1.1 var(--font1); }
.discipline-row { display:grid; grid-template-columns:auto 30px; align-items:center; gap:10px; margin:13px 0; font-size:15px; }
.discipline-name { color:#5b4b5b; }
.discipline-count { color:#9b8055; text-align:left; font:18px var(--font1); }
.discipline-rates { grid-column: 1 / -1; margin-top: -8px; color:#897464; font-size:13px; text-align:left; }
.stats-highlights { display:grid; grid-template-columns:auto auto auto; gap:10px; }
.stats-highlights2 { display:grid; grid-template-columns: auto auto; gap:10px; margin-top: 10px; }
.highlight-box { background:#211027; color:#f6f2eb; padding:13px 14px; border-left:2px solid #c6a66d; }
.highlight-box2 { background:#211027; padding:13px 14px; border-left:2px solid #c6a66d; color:#cbbfca; font-size:15px; }
.highlight-box small, .highlight-box2 small { display:block; color:#c6a66d; font-size:16px; text-transform:uppercase; letter-spacing:.15em; }
.highlight-box strong { display:block; margin-top:8px; font:18px/1.2 var(--font2); font-weight:400; letter-spacing: 1px; }
.highlight-box span { display:block; color:#cbbfca; font-size:15px; margin-top:2px; }
.results-heading-row { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:30px 0 12px; }
.results-heading-row h3 { margin:0; }
.results-count { color:#92785d; font-size:12px; text-transform:uppercase; letter-spacing:.15em; white-space:nowrap; }
.results-controls { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 14px; }
.results-controls label { color:#8b7768; text-transform:uppercase; letter-spacing:.12em; font-size:12px; display:flex; flex-direction:column; gap:5px; flex:1; min-width:130px; }
.results-controls select,.results-controls input { width:100%; min-height:38px; border:1px solid #d9cbbb; background:#fffdfa; color:#342538; padding:8px 10px; border-radius:0; font:14px var(--font1); outline-color:#c6a66d; }
.results-table-wrap { width:100%; overflow-x:auto; border:1px solid #e3d8c9; }
.results-table { width:100%; border-collapse:collapse; text-align:left; font-size:15px; min-width:590px; }
.results-table th { background:#211027; color:#e5d0a2; text-transform:uppercase; letter-spacing:.12em; font-size:13px; font-weight:400; padding:12px 11px; }
.results-table td { padding:8px 11px; border-bottom:1px solid #eee6df; color:#514652; vertical-align:middle; }
.results-table tbody tr:nth-child(even) { background:#f7f2ec; }
.results-table tbody tr:hover { background:#efe5d9; }
.result-location { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.result-flag { vertical-align:middle; margin-right: 5px; }
.result-place { display:inline-flex; align-items:center; justify-content:center; font:15px var(--font1); }
.result-place.highlighted { color: var(--plum-light); font-weight: 700; }
.result-highlight-toggle { display:flex; align-items:center; gap:5px; margin-top:6px; color:#8b7768; font-size:9px; line-height:1.3; cursor:pointer; white-space:nowrap; }
.result-highlight-toggle input { accent-color:#211027; cursor:pointer; margin:0; }
.result-class {  }
.result-empty { text-align:center; padding:24px !important; color:#9b8b99 !important; }









.hero { border-bottom: 1px solid rgba(198,166,109,.55); }
.hero:after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 9px;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(198,166,109,.65) 18%, rgba(229,208,162,.5) 50%, rgba(198,166,109,.65) 82%, transparent);
  pointer-events: none;
}
.horse-facts { border-right: 1px solid rgba(198,166,109,.5); }

.biography { position: relative; }










.competition-calendar { color: var(--text); }
.calendar-intro { color: #756a73; font-size: 13px; margin: 8px 0 18px; }
.calendar-list { border-top: 1px solid #e3d8c9; margin-top: 22px; }
.calendar-head { display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; padding:10px 14px; background:#211027; color:#e5d0a2; text-transform:uppercase; letter-spacing:.1em; font-size:11px; }
.calendar-group { display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; padding:14px; border-bottom:1px solid #e3d8c9; background:#fffdfa; text-align:left; align-self:center; }
.calendar-group2 { display:grid; grid-template-columns: 1fr; gap:16px; padding:14px; border-bottom:1px solid #e3d8c9; background:#fffdfa; text-align:left; align-self:center; }
.calendar-group:nth-child(odd), .calendar-group2:nth-child(odd) { background:#f7f2ec; }
.calendar-image-wrap { align-self:center; }
.calendar-photo { display:block; width:100px; height:76px; object-fit:cover; border:1px solid rgba(198,166,109,.75); }
.calendar-events { min-width:0; align-self:center; }
.calendar-event { display:grid; grid-template-columns:minmax(80px,.65fr) minmax(110px,1.1fr) minmax(120px,1.1fr) minmax(130px,1.2fr) minmax(80px,0.9fr); align-items:center; gap:10px; padding:3px 0; }

.calendar-event2 { display:grid; grid-template-columns: 0.5fr 0.5fr 1fr 2fr 1fr 1fr; align-items:center; gap:10px; padding:7px 0; }
.calendar-event3 { display:grid; grid-template-columns: 1fr; align-items:center; gap:10px; padding:7px 0; }

.calendar-event + .calendar-event, .calendar-event2 + .calendar-event2 { border-top:1px solid #e3d8c9; margin-top:5px; padding-top:12px; }
.calendar-date { white-space:nowrap; }
.calendar-jaos { text-align:center; padding-right: 30px; }
.calendar-class {  }
.vsn { border-top:1px solid #e3d8c9; padding-top:20px; font-weight:700; }
.calendar-field { width:100%; min-width:0; padding:7px 8px; border:1px solid #d9cbbb; background:#fffdfa; color:#342538; border-radius:0; font:13px var(--font1); }
.calendar-field:focus { outline:1px solid #c6a66d; }
.calendar-mobile-label { display:none; }

@media(max-width:1000px) {
 .calendar-head { display:none; }
 .calendar-group { grid-template-columns:88px minmax(0,1fr); gap:12px; padding:12px; }
 .calendar-photo { width:80px; height:64px; }
 .calendar-event { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
 .calendar-mobile-label { display:block; color:#92785d; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
}
@media(max-width:480px) {
 .calendar-group { grid-template-columns:64px minmax(0,1fr); gap:9px; padding:10px 8px; }
 .calendar-photo { width:58px; height:48px; }
 .calendar-image-note { font-size:8px; letter-spacing:0; }
 .calendar-event { grid-template-columns:minmax(0,1fr); gap:7px; }
 .calendar-event + .calendar-event { margin-top:8px; padding-top:12px; }
}


@media(max-width:760px) {
 .stats-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .stat-card { min-height:112px; padding:15px 9px; }
 .stat-number { font-size:34px; }
 .stats-lower { grid-template-columns:1fr; gap:13px; }
 .stats-panel { padding:16px; }
 .results-heading-row { align-items:start; flex-direction:column; gap:5px; }
}
@media(max-width:420px) {
 .stats-overview { gap:7px; }
 .stat-label { font-size:8px; letter-spacing:.1em; }
 .stats-highlights { gap:7px; }
 .highlight-box { padding:11px 10px; }
 .highlight-box strong { font-size:18px; }
 .discipline-row { grid-template-columns:82px 1fr 20px; gap:7px; }
}

@media (min-width: 1500px) { .hero { height: 590px; } .biography { margin: auto; } }
@media (max-width: 900px) {
  .site-header { padding: 0 4%; gap: 15px; } .header-note { display: none; } .nav { gap: 18px; }
  .hero-copy { left: 6%; width: 52%; } .profile-layout { grid-template-columns: 260px 1fr; }
  .horse-facts { padding-left: 12%; padding-right: 12%; } .biography { padding: 42px 32px 30px; }
  .gallery { grid-template-columns: 1fr 1.3fr; } .gallery figure { height: 140px; }
}
@media (max-width: 620px) {
  .site-header { height: 70px; justify-content: space-between; } .brand { width: 65px; }
  .menu-toggle { display: block; border: 1px solid #6b526a; color: var(--gold-pale); background: transparent; padding: 8px 11px; font-size: 17px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 69px; background: #160d1a; padding: 20px 25px; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--gold); }
  .nav.open { display: flex; } .nav a { padding: 10px 0; }
  .hero { min-height: 530px; height: 72vh; max-height: 700px; }
  .hero-photo { inset: 0; background-position: 57% center; opacity: .74; }
  .hero:before { background: linear-gradient(90deg, rgba(16,9,18,.94), rgba(16,9,18,.34)), linear-gradient(0deg, rgba(8,5,9,.45), transparent); }
  .hero-copy { top: 22%; left: 7%; width: 86%; } h1 { font-size: clamp(55px, 15vw, 82px); }
  .profile-layout { display: flex; flex-direction: column; }
  .horse-facts { padding: 34px 8% 28px; }
  .side-heading { font-size: 32px; } .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .facts div { margin-bottom: 12px; padding-left: 30px; } .facts dd { font-size: 14px; }
  .side-monogram { display: none; }
  .biography { padding: 38px 7% 32px; } h2 { font-size: 39px; }
  .subhead { line-height: 1.7; letter-spacing: .17em; }
  .biography > p:not(.subhead) { font-size: 17px; }
  .gallery { grid-template-columns: 1fr 1fr; } .gallery figure { height: 145px; }
  .achievement-strip { flex-wrap: wrap; justify-content: center; padding: 25px 5%; gap: 22px 28px; }
  .strip-title { width: 100%; text-align: center; font-size: 18px; }
  .achievement { min-width: 100px; } .footer-content { gap: 10px; }
  .footer-script { font-size: 19px; } .footer-brand strong { font-size: 45px; }
  .footer-brand small { font-size: 7px; letter-spacing: .15em; }
  .footer-bottom { gap: 12px; flex-wrap: wrap; justify-content: center; text-align: center; }
}
