/* Pinteli.net landing page — implementation of "Pinteli Landing.dc.html"
   (claude.ai/design project "Hevosaiheinen Discourse-teema"). */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #1e3b2f;
  --green-dark: #152a21;
  --brass: #b8913f;
  --wheat: #d9c99e;
  --leather: #9a5b2e;
  --leather-dark: #83491f;
  --cream: #f4eee2;
  --card: #fbf8f1;
  --line: #e2d8c6;
  --hay: #eae1cf;
  --ink: #2b2521;
  --ink-soft: #4a3f36;
  --muted: #6e6358;
  --sage: #6f8a7c;
  --banner-text: #e6dcc4;
  --stat-label: #c9d3cc;
  --flair-bg: #f1e6cc;
  --leather-light-text: #f4e6d6;
  --leather-dash: #e6c88a;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-synthesis-weight: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--leather);
  text-decoration: none;
}

a:hover {
  color: var(--green);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.suffix {
  color: var(--brass);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--card);
  color: var(--green);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green);
  color: var(--cream);
  border-bottom: 6px solid var(--green-dark);
}

.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.brand:hover {
  color: var(--cream);
  text-decoration: none;
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--green);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  box-shadow:
    inset 0 0 0 2px var(--green),
    0 0 0 1px var(--brass);
}

.brand__name {
  font-family: var(--serif);
  font-size: 23px;
}

.nav__spacer {
  flex: 1;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}

.nav__links a {
  color: var(--banner-text);
}

.nav__links a:hover {
  color: var(--cream);
}

.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--nav {
  font-size: 15px;
  border-radius: 8px;
  padding: 9px 16px;
  background: var(--brass);
  color: var(--green);
}

.btn--nav:hover {
  background: #cca552;
  color: var(--green);
}

.btn--primary {
  font-size: 17px;
  padding: 15px 24px;
  background: var(--leather);
  color: var(--card);
}

.btn--primary:hover {
  background: var(--leather-dark);
  color: var(--card);
}

.btn--outline {
  font-size: 17px;
  padding: 14px 22px;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn--outline:hover {
  background: var(--hay);
  color: var(--green);
}

/* --------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leather);
}

.eyebrow::before {
  content: "";
  width: 28px;
  border-top: 1px dashed var(--leather);
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 36ch;
  margin: 0 0 32px;
  font-size: 20px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  position: relative;
}

.hero__frame {
  padding: 8px;
  border-radius: 22px;
  background: var(--green);
  transform: rotate(1.5deg);
  box-shadow: 0 30px 60px -30px rgb(30 59 47 / 0.6);
}

.hero__photo {
  overflow: hidden;
  border: 1.5px dashed var(--brass);
  border-radius: 16px;
  aspect-ratio: 4 / 5;
}

.hero__photo img,
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-card {
  position: absolute;
  left: -28px;
  bottom: 36px;
  max-width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 16px 30px -18px rgb(43 37 33 / 0.5);
  transform: rotate(-2deg);
}

.thread-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #7a5230;
}

.thread-card__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}

.thread-card__cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--leather);
}

/* ------------------------------------------------------------- ticker */
.ticker {
  overflow: hidden;
  background: var(--green);
  color: var(--wheat);
  border-top: 1px dashed var(--brass);
  border-bottom: 1px dashed var(--brass);
}

.ticker ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
  list-style: none;
  font-family: var(--serif);
  font-size: 19px;
}

/* ------------------------------------------------------------- topics */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  text-wrap: balance;
}

.section-intro p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgb(43 37 33 / 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

.card__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--c);
  color: var(--card);
  font-family: var(--serif);
  font-size: 18px;
}

.card__name {
  font-weight: 700;
  font-size: 18px;
}

.card__desc {
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------------------------------------------------------- community */
.community {
  background: var(--green);
  color: var(--cream);
}

.community__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
  margin: 0;
}

.mosaic__cell {
  position: relative;
  overflow: hidden;
  border: 1.5px dashed var(--brass);
  border-radius: 14px;
}

.mosaic__cell--tall {
  grid-row: span 2;
}

.community .eyebrow {
  margin-bottom: 16px;
  color: var(--wheat);
}

.community .eyebrow::before {
  display: none;
}

.community .section-title {
  margin-bottom: 32px;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px dashed var(--sage);
}

.value__n {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--brass);
}

.value__title {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 18px;
}

.value__text {
  font-size: 16px;
  color: var(--stat-label);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- join */
.join {
  padding-top: 96px;
  padding-bottom: 96px;
}

.join__outer {
  padding: 8px;
  border-radius: 22px;
  background: var(--leather);
  color: var(--card);
}

.join__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  padding: 64px 48px;
  border: 1.5px dashed var(--leather-dash);
  border-radius: 16px;
}

.join h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  text-wrap: balance;
}

.join p {
  max-width: 40ch;
  margin: 0;
  font-size: 18px;
  color: var(--leather-light-text);
}

.join .actions {
  justify-content: flex-end;
}

.btn--light {
  font-weight: 700;
  font-size: 17px;
  padding: 16px 26px;
  background: var(--card);
  color: var(--green);
}

.btn--light:hover {
  background: var(--flair-bg);
  color: var(--green);
}

.btn--ghost-light {
  font-size: 17px;
  padding: 15px 24px;
  color: var(--card);
  border: 1.5px solid var(--leather-light-text);
}

.btn--ghost-light:hover {
  background: var(--leather-dark);
  color: var(--card);
}

/* -------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 32px;
  padding-bottom: 16px;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__credits {
  padding-bottom: 32px;
  font-size: 12px;
  color: var(--muted);
}

.footer__credits a {
  color: var(--muted);
  text-decoration: underline;
}

/* ------------------------------------------------------ consent banner */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consent[hidden] {
  display: none;
}

.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  max-width: 760px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 16px 40px -20px rgb(43 37 33 / 0.55);
  pointer-events: auto;
}

.consent__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.consent__text strong {
  color: var(--ink);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Both choices look the same on purpose: rejecting is as easy as accepting. */
.consent__btn {
  padding: 10px 16px;
  border: 1.5px solid var(--green);
  border-radius: 8px;
  background: var(--card);
  color: var(--green);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.consent__btn:hover {
  background: var(--hay);
}

/* -------------------------------------------------------- small screens */
@media (max-width: 720px) {
  .nav__inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav__links {
    display: none;
  }

  .brand__name {
    font-size: 20px;
  }

  .btn--nav {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .join {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 64px;
    gap: 48px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .thread-card {
    left: 12px;
    bottom: -24px;
    max-width: 240px;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .mosaic {
    grid-template-rows: 170px 170px;
  }

  .join__inner {
    padding: 40px 24px;
  }

  .join .actions {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------- legal pages */
.legal {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}

.legal__meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}
