/*
Theme Name: TäsmäMetsä – ennakkosivu
Description: Muokattava yhden sivun ennakkosivusto. Logo, esittely ja yhteystiedot WordPressin omilla lohkoilla.
Version: 0.5.0
Requires at least: 6.6
Requires PHP: 7.4
Author: TäsmäMetsä
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tasmametsa-ennakko
Tags: full-site-editing, custom-logo, custom-colors, one-column
*/

/* Värit ja kirjasimet tulevat theme.json-tiedostosta / WordPressin Tyylit-näkymästä. */
html { scroll-behavior: smooth; }
body { margin: 0; }
body, .editor-styles-wrapper { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.tm-header, .tm-main, .tm-intro, .tm-contact, .tm-footer { box-sizing: border-box; }
.tm-shell { width: calc(100% - 96px); max-width: 1160px; margin-inline: auto; }
.tm-shell p, .tm-shell h1, .tm-shell h2, .tm-shell h3 { margin-block: 0; }
.tm-header { min-height: 110px; padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d9ded2; }
.tm-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.tm-brand { color: var(--wp--preset--color--metsa); font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -1.25px; }
.tm-logo { flex: 0 0 auto; line-height: 0; }
.tm-logo img { display: block; height: auto; object-fit: contain; }
.tm-header-note { color: var(--wp--preset--color--hillitty); font-size: 13px; line-height: 1.5; text-align: right; }
.tm-main { margin-block: 0; }
.tm-intro { position: relative; isolation: isolate; overflow: hidden; }
.tm-intro::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 720px; height: 720px; right: -220px; top: -12px; border-radius: 42% 58% 65% 35% / 50% 45% 55% 50%; opacity: .55; transform: rotate(-24deg); background: repeating-radial-gradient(ellipse at 62% 40%, transparent 0, transparent 34px, #d7dfd0 35px, transparent 36px, transparent 52px); -webkit-mask-image: linear-gradient(to right, transparent, #000 52%); mask-image: linear-gradient(to right, transparent, #000 52%); }
.tm-intro-inner { position: relative; padding-block: 74px 78px; }
.tm-eyebrow { color: var(--wp--preset--color--hillitty); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 2px; line-height: 1.8; }
.tm-headline { color: var(--wp--preset--color--metsa); font-family: var(--wp--preset--font-family--otsikko); font-size: clamp(48px, 6.8vw, 92px); line-height: 1.06; font-weight: 400; letter-spacing: -3.2px; max-width: 900px; margin-top: 24px !important; }
.tm-lead { color: var(--wp--preset--color--metsa); font-size: clamp(19px, 2vw, 23px); font-weight: 550; line-height: 1.5; max-width: 720px; margin-top: 34px !important; }
.tm-description { max-width: 660px; font-size: 17px; line-height: 1.8; margin-top: 17px !important; }
.tm-status { display: inline-block; max-width: 100%; box-sizing: border-box; margin-top: 30px !important; padding: 5px 0 5px 17px; border-left: 3px solid var(--wp--preset--color--okra); color: var(--wp--preset--color--hillitty); font-size: 13px; line-height: 1.6; }
.tm-contact { background: var(--wp--preset--color--metsa); color: var(--wp--preset--color--vaalea); }
.tm-contact-inner { display: flex; align-items: center; justify-content: space-between; column-gap: 48px; row-gap: 28px; padding-block: 46px 48px; }
.tm-contact-copy { flex: 1 1 52%; }
.tm-contact .tm-eyebrow { color: var(--wp--preset--color--salvia); }
.tm-contact-heading { color: inherit; font-family: var(--wp--preset--font-family--otsikko); font-size: clamp(29px, 3vw, 36px); font-weight: 400; line-height: 1.2; margin-top: 10px !important; }
.tm-contact-description { font-size: 14px; line-height: 1.7; color: var(--wp--preset--color--salvia); max-width: 410px; margin-top: 14px !important; }
.tm-contact-action { flex: 0 1 auto; min-width: 0; }
.tm-email { font-size: clamp(22px, 2.5vw, 31px); font-weight: 400; letter-spacing: -.65px; line-height: 1.5; }
.tm-email a { display: inline-block; min-height: 44px; box-sizing: border-box; padding-block: 5px 9px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--wp--preset--color--okra); overflow-wrap: anywhere; }
.tm-email a:hover { color: var(--wp--preset--color--salvia); border-bottom-color: currentColor; }
.tm-email-hint { color: var(--wp--preset--color--salvia); font-size: 12px; line-height: 1.5; margin-top: 10px !important; }
.tm-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 25px; }
.tm-footer-brand { color: var(--wp--preset--color--metsa); font-size: 15px; font-weight: 650; letter-spacing: -.3px; }
.tm-footer-location { color: var(--wp--preset--color--hillitty); font-size: 12px; }
.tm-not-found { padding-block: 100px; }
a:focus-visible { outline: 3px solid var(--wp--preset--color--okra); outline-offset: 6px; }

@media (max-width: 900px) {
  .tm-contact-inner { align-items: flex-start; flex-direction: column; }
  .tm-contact-copy, .tm-contact-action { flex: 0 1 auto; }
  .tm-contact-description { max-width: 100%; }
  .tm-intro::after { right: -390px; opacity: .35; }
}
@media (max-width: 600px) {
  .tm-shell { width: calc(100% - 44px); }
  .tm-header { min-height: 88px; padding-block: 22px; gap: 16px; flex-wrap: wrap; }
  .tm-brand { font-size: 28px; }
  .tm-identity { gap: 12px; }
  .tm-header-note { width: 100%; text-align: left; font-size: 12px; }
  .tm-intro-inner { padding-block: 44px 48px; }
  .tm-eyebrow { font-size: 10px; letter-spacing: 1.05px; }
  .tm-headline { font-size: clamp(43px, 9.2vw, 57px); letter-spacing: -1.5px; margin-top: 22px !important; }
  .tm-lead { font-size: 20px; margin-top: 28px !important; }
  .tm-description { font-size: 16px; line-height: 1.8; }
  .tm-status { font-size: 12px; margin-top: 24px !important; padding-left: 13px; }
  .tm-contact-inner { padding-block: 34px 38px; row-gap: 25px; }
  .tm-contact-heading { font-size: 29px; }
  .tm-contact-description { font-size: 14px; }
  .tm-email { font-size: clamp(21px, 6vw, 28px); }
  .tm-footer { padding-block: 21px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Täsmämetsänhoidon esittely ja vahvistettu logo, versio 0.4.0. */
.tm-method { border-top: 1px solid #d9ded2; }
.tm-method-inner { padding-block: 70px 76px; }
.tm-method-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.tm-section-heading { font-size: clamp(33px, 3.6vw, 46px); font-weight: 400; line-height: 1.14; letter-spacing: -1px; margin-top: 17px !important; }
.tm-method-intro, .tm-method-description, .tm-step-text, .tm-benefit-text { font-size: 16px; line-height: 1.8; }
.tm-method-description { margin-top: 18px !important; }
.tm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; margin-top: 44px !important; }
.tm-step { min-width: 0; border-top: 1px solid #bccbbd; padding-top: 19px; }
.tm-step-number { color: var(--wp--preset--color--hillitty); font-size: 11px; font-weight: 650; letter-spacing: 1.5px; }
.tm-step-heading { font-family: var(--wp--preset--font-family--teksti); color: var(--wp--preset--color--metsa); font-size: 20px; font-weight: 600; line-height: 1.4; margin-top: 12px !important; }
.tm-step-text { margin-top: 13px !important; }
.tm-benefit { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; padding-top: 36px; margin-top: 40px !important; border-top: 1px solid #d9ded2; }
.tm-benefit-heading { color: var(--wp--preset--color--metsa); font-family: var(--wp--preset--font-family--otsikko); font-size: 28px; line-height: 1.25; font-weight: 400; max-width: 390px; }
.tm-contact-inner { padding-block: 56px 58px; }
.tm-contact-heading { font-size: clamp(33px, 3.6vw, 44px); }
.tm-contact-description { max-width: 470px; }
.tm-contact-note { color: var(--wp--preset--color--salvia); font-size: 12px; line-height: 1.7; max-width: 470px; margin-top: 16px !important; }
.tm-footer { padding-block: 16px; gap: 32px; }
.tm-footer-logo { flex: 0 1 264px; width: 264px; max-width: 100%; margin: 0; }
.tm-footer-logo img { width: 100%; max-width: 100%; height: auto; display: block; }
.tm-footer-details { text-align: right; }
.tm-footer-slogan { color: var(--wp--preset--color--metsa); font-family: var(--wp--preset--font-family--otsikko); font-size: 24px; line-height: 1.4; }
.tm-footer-location { margin-top: 12px !important; }
@media (max-width: 900px) {
  .tm-method-top, .tm-benefit { gap: 32px; }
  .tm-steps { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .tm-method-inner { padding-block: 42px 46px; }
  .tm-method-top, .tm-benefit { grid-template-columns: 1fr; gap: 24px; }
  .tm-section-heading { font-size: 34px; }
  .tm-steps { margin-top: 32px !important; }
  .tm-benefit { padding-top: 28px; margin-top: 32px !important; }
  .tm-benefit-heading { font-size: 27px; }
  .tm-contact-inner { padding-block: 37px 42px; }
  .tm-contact-heading { font-size: 34px; }
  .tm-footer { flex-direction: column; gap: 0; padding-block: 10px 27px; }
  .tm-footer-logo { width: 230px; flex-basis: auto; }
  .tm-footer-details { text-align: center; }
  .tm-footer-slogan { font-size: 21px; }
  .tm-footer-location { margin-top: 8px !important; }
}

/* Tavalliset sisältösivut, mukaan lukien tietosuojasivu. */
.tm-page { max-width: 900px; padding-block: 46px 72px; }
.tm-page-back { font-size: 13px; margin-bottom: 25px !important; }
.tm-page-title { font-size: clamp(38px, 5vw, 58px); line-height: 1.1; font-weight: 400; margin-bottom: 32px !important; }
.tm-page .wp-block-post-content { font-size: 16px; line-height: 1.85; }
.tm-page .wp-block-post-content p { margin-block: 0 1.1rem; }
.tm-page .wp-block-post-content h2 { font-size: clamp(25px, 3vw, 31px); font-weight: 400; line-height: 1.3; margin-block: 2.1rem 1rem; }
.tm-page .wp-block-post-content a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tm-footer-privacy { margin-top: 12px !important; font-size: 13px; line-height: 1.6; }
.tm-footer-privacy a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .tm-page { padding-block: 30px 46px; } }
