/*
 Theme Name:   Pärnävaara (Bricks Child)
 Theme URI:    https://parna3d.fi/
 Description:  Child theme for parna3d.fi. Design tokens (colours, base typography)
               live in the Bricks colour palette and theme style; the component
               layer lives here so it stays in version control.
 Author:       Joutsi ry
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/

/* ---------------------------------------------------------------------------
   Colour tokens come from the Bricks "Pärnävaara" palette, which Bricks emits
   natively as --forest, --bone, --ember, --line and their variants. Body and
   heading typography come from the "Pärnävaara" theme style. Everything below
   is the component layer.
   --------------------------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ember); color: var(--forest-deepest); }

.shell { display: block; max-width: 80rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* Sections ---------------------------------------------------------------- */
.section { display: block; background-color: var(--forest); padding-block: clamp(4rem, 9vw, 9rem); }
.section--no-top { padding-top: 0; }
.section--raised { background-color: var(--forest-raised); }
.section--deep { background-color: var(--forest-deepest); }

.section__title { font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; color: var(--bone); margin: 0 0 clamp(3rem, 6vw, 4rem); max-width: 34rem; }
.section__title--flush { margin-bottom: 0; }
.section__title--sm { font-size: clamp(1.6rem, 3.4vw, 2rem); margin-bottom: 0; }

.grid12 { display: grid; gap: 2.5rem 3rem; }

/* Buttons and links ------------------------------------------------------- */
.btn { letter-spacing: normal; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.85rem 1.35rem; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; border-radius: 3px; text-decoration: none; cursor: pointer; transition: background-color 200ms cubic-bezier(0.25, 1, 0.5, 1), border-color 200ms cubic-bezier(0.25, 1, 0.5, 1), color 200ms cubic-bezier(0.25, 1, 0.5, 1); }
.btn--primary, .btn--primary:hover { color: var(--forest-deepest); }
.btn--primary { background-color: var(--ember); border: 1px solid var(--ember); }
.btn--primary:hover { background-color: var(--ember-bright); border-color: var(--ember-bright); }
.btn--ghost, .btn--ghost:hover { color: var(--bone); }
.btn--ghost { background-color: transparent; border: 1px solid var(--line-bright); }
.btn--ghost:hover { border-color: var(--bone); }

.link { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-bright); text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color 200ms cubic-bezier(0.25, 1, 0.5, 1), text-decoration-color 200ms cubic-bezier(0.25, 1, 0.5, 1); }
.link:hover { color: var(--ember-bright); text-decoration-color: currentColor; }
.link--arrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; }
.link--arrow::after { content: "→"; font-size: 0.9em; line-height: 1; text-decoration: none; }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; overflow: hidden; background-color: var(--forest-deepest); }
.hero__photo { display: block; position: absolute; inset: 0; z-index: 0; margin: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.78); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 9, 5, 0.65) 0%, rgba(4, 9, 5, 0.25) 35%, rgba(4, 9, 5, 0.6) 72%, rgba(4, 9, 5, 0.95) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 7rem; padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.hero__copy { max-width: 62rem; }
.hero__title { font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-size: clamp(2.5rem, 5.8vw + 0.5rem, 5.5rem); line-height: 0.98; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; color: var(--bone); text-shadow: 0 1px 12px rgba(4, 9, 5, 0.6); margin: 0 0 clamp(1.75rem, 3.5vw, 2.25rem); }
.hero__sub { color: var(--bone-dim); font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.55; max-width: 36rem; margin: 0 0 clamp(2.25rem, 4vw, 2.5rem); }
.hero__actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }

/* Intro ------------------------------------------------------------------- */
.intro__aside { font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.5rem, 3.2vw, 1.875rem); line-height: 1.2; color: var(--bone-dim); margin: 0; }
.intro__lead { font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.6; color: var(--bone); margin: 0 0 1.5rem; }
.intro__text { color: var(--bone-dim); max-width: 36rem; margin: 0; }

/* Coming soon list -------------------------------------------------------- */
.coming { display: grid; }
.coming__item { display: grid; gap: 0.75rem 3rem; border-top: 1px solid var(--line); padding-top: 1.75rem; padding-bottom: 2.25rem; }
.coming__item:last-child { border-bottom: 1px solid var(--line); }
.coming__name { font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-weight: 700; letter-spacing: -0.015em; overflow-wrap: break-word; font-size: clamp(1.5rem, 3.2vw, 1.875rem); line-height: 1.15; color: var(--bone); margin: 0; }
.coming__desc { color: var(--bone-dim); font-size: clamp(1.0625rem, 1.6vw, 1.125rem); max-width: 38rem; margin: 0; }

/* Where ------------------------------------------------------------------- */
.where__lead { color: var(--bone-dim); font-size: clamp(1.0625rem, 1.6vw, 1.125rem); max-width: 26rem; margin: 1.5rem 0 0; }
.facts { display: grid; }
.facts__row { display: grid; gap: 0.15rem 2rem; border-top: 1px solid var(--line); padding-block: 1.1rem; }
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts__label { color: var(--bone-quiet); font-size: 0.875rem; margin: 0; }
.facts__value { color: var(--bone); margin: 0; }

/* Who --------------------------------------------------------------------- */
.who__body { color: var(--bone-dim); font-size: clamp(1.0625rem, 1.6vw, 1.125rem); max-width: 30rem; margin: 1.5rem 0 0; }
.team { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.team__label { color: var(--bone-quiet); font-size: 0.875rem; margin: 0 0 1rem; }
.team__list { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-weight: 700; font-size: clamp(1.25rem, 2.5vw, 1.5rem); color: var(--bone); margin: 0; }
.team__list p { margin: 0; }

/* Partners ---------------------------------------------------------------- */
.partners__body { color: var(--bone-dim); max-width: 28rem; margin: 1.25rem 0 0; }
.partners__list { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--bone-dim); margin: 0; }
.partners__list p { margin: 0; }

/* Header ------------------------------------------------------------------ */
#brx-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; background: transparent; }
.hdr-shell { max-width: 80rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand__name { font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 700; letter-spacing: -0.015em; color: var(--bone); line-height: 1; margin: 0; }
/* Brand mark. Rendered as a CSS mask rather than an inline <svg> element:
   Bricks refuses to render unsigned SVG code (svg.php requires an HMAC
   signature that only the builder can mint), so a mask keeps the mark
   decorative, colourable via currentColor, and free of code execution. */
.brand__mark { display: block; flex: none; width: 30px; height: 30px; background-color: var(--ember); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2212.5%22%20stroke-width%3D%221.8%22%20opacity%3D%220.45%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%227%22%20stroke-width%3D%221.8%22%20opacity%3D%220.8%22%2F%3E%3Cpath%20d%3D%22M3%2029%20L16%2016%22%20stroke-width%3D%222.4%22%2F%3E%3Cpath%20d%3D%22M3.2%2025.2%20L6.8%2028.8%22%20stroke-width%3D%221.8%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%222.4%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2212.5%22%20stroke-width%3D%221.8%22%20opacity%3D%220.45%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%227%22%20stroke-width%3D%221.8%22%20opacity%3D%220.8%22%2F%3E%3Cpath%20d%3D%22M3%2029%20L16%2016%22%20stroke-width%3D%222.4%22%2F%3E%3Cpath%20d%3D%22M3.2%2025.2%20L6.8%2028.8%22%20stroke-width%3D%221.8%22%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%222.4%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain; }
.lang { display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 700; color: var(--bone-dim); margin-block: -0.6rem; }
.lang__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.75rem; padding: 0; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 2px; text-decoration: none; transition: color 200ms cubic-bezier(0.25, 1, 0.5, 1); }
.lang__btn[aria-pressed="true"], .lang__btn.is-active { color: var(--bone); }
.lang__btn:hover { color: var(--ember-bright); }
.lang__sep { color: var(--bone-quiet); }

/* Footer ------------------------------------------------------------------ */
#brx-footer { background-color: var(--forest-deepest); border-top: 1px solid var(--line); }
.ftr-shell { max-width: 80rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); padding-block: clamp(3.5rem, 6vw, 4rem); }
.ftr-grid { display: grid; gap: 2.5rem 3rem; align-items: start; }
.ftr-brand__row { display: flex; align-items: center; gap: 0.75rem; }
.ftr-brand__row .brand__mark { width: 26px; height: 26px; }
.ftr-brand__name { font-family: Vollkorn, "Iowan Old Style", Georgia, serif; font-weight: 700; letter-spacing: -0.015em; font-size: 1.125rem; color: var(--bone); line-height: 1; margin: 0; }
.ftr-brand__tagline { margin: 1rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--bone-quiet); max-width: 24rem; }
.ftr-col__title { font-family: inherit; font-size: 0.875rem; font-weight: 400; color: var(--bone-quiet); letter-spacing: normal; margin: 0; }
.ftr-col__list { display: grid; margin-top: 0.75rem; }
.ftr-link { display: inline-block; width: fit-content; padding-block: 0.375rem; font-size: 0.875rem; color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-bright); text-decoration-thickness: 1px; text-underline-offset: 0.25em; transition: color 200ms cubic-bezier(0.25, 1, 0.5, 1), text-decoration-color 200ms cubic-bezier(0.25, 1, 0.5, 1); }
.ftr-link:hover { color: var(--ember-bright); text-decoration-color: currentColor; }
.ftr-col__note { padding-top: 0.375rem; font-size: 0.875rem; color: var(--bone-dim); margin: 0; }
.ftr-legal { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--bone-quiet); }

/* Responsive -------------------------------------------------------------- */
@media (min-width: 641px) {
  .hero__actions { flex-direction: row; gap: 1rem; align-items: center; }
  .facts__row { grid-template-columns: 9rem 1fr; align-items: baseline; }
  .facts__label { font-size: 1.0625rem; }
  .ftr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid12 { grid-template-columns: repeat(12, 1fr); }
  .intro__aside { grid-column: 1 / span 4; }
  .intro__body { grid-column: 6 / span 7; }
  .coming__item { grid-template-columns: repeat(12, 1fr); }
  .coming__name { grid-column: 1 / span 4; }
  .coming__desc { grid-column: 6 / span 7; }
  .where__intro { grid-column: 1 / span 5; }
  .facts { grid-column: 7 / span 6; }
  .who__intro { grid-column: 1 / span 6; }
  .team { grid-column: 8 / span 5; }
  .partners__intro { grid-column: 1 / span 5; }
  .partners__list { grid-column: 7 / span 6; align-self: end; }
  .ftr-grid { grid-template-columns: repeat(12, 1fr); }
  .ftr-brand { grid-column: 1 / span 5; }
  .ftr-col--follow { grid-column: 7 / span 3; }
  .ftr-col--contact { grid-column: 10 / span 3; }
}
