/* "Vem är Ihop för?" pages: /for and /for/<kind>. Built by .dev/pages_for.py. Uses tokens.css, components.css and pages.css. */

/* Header: text beside the painted scene; scene first on phones, cropped to its upper part. */
.for-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 5vw, 72px) var(--s-6); }
.for-hero__text { display: grid; gap: var(--s-4); justify-items: start; min-width: 0; }
.for-hero__text .crumbs { margin-bottom: 0; }
.for-hero__text .tag .ico { width: 15px; height: 15px; }
.for-hero h1 { max-width: 15em; text-wrap: balance; }
.for-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.for-hero__art { margin: 0; border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 1; background: var(--sheet); }
.for-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.for-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink2); font-size: var(--t-small); }
.for-facts li { display: inline-flex; align-items: center; gap: 8px; }
.for-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 860px) {
  .for-hero { grid-template-columns: 1fr; gap: var(--s-5); }
  .for-hero__art { order: -1; aspect-ratio: 16 / 10; }
}

/* "Låter det bekant?": what people say, as notes on paper. */
.for-says { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.for-says .e-lead { color: var(--ink2); margin-top: var(--s-4); }
.for-says__q { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.for-says__q li { position: relative; padding: 18px 20px 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-2) var(--r-2) var(--r-2) 4px; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; }
.for-says__q li::before { content: "”"; display: block; font-size: 40px; line-height: .6; height: 18px; color: var(--accent); }
.for-says__q li:nth-child(even) { transform: translateY(18px); }
@media (max-width: 860px) {
  .for-says { grid-template-columns: 1fr; }
  .for-says__q li:nth-child(even) { transform: none; }
}
@media (max-width: 520px) { .for-says__q { grid-template-columns: 1fr; } }

/* "Det här får ni": what Ihop gives this kind. */
.for-get { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-5) var(--s-6); margin-top: clamp(24px, 4vw, 48px); }
.for-get__i { display: grid; gap: var(--s-2); align-content: start; }
.for-get__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s-1); }
.for-get__ico .ico { width: 22px; height: 22px; }
.for-get h3 { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); line-height: 1.25; }
.for-get p { color: var(--ink2); }
@media (prefers-color-scheme: dark) { .for-get__ico { color: #E8A9B1; } }

/* How it starts. */
.for-muted { color: var(--ink2); margin-top: var(--s-3); }
.for-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-3); }
.for-steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 4px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-2); }
.for-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-weight: 600; font-size: 20px; }
.for-steps h3 { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); line-height: 1.25; align-self: end; }
.for-steps p { color: var(--ink2); }

.for-prose { max-width: 44em; }
.for-label { margin-top: var(--s-6); }

/* Cards for each kind: the hub grid, and the smaller strip at the bottom of each page. */
.for-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); }
.for-kinds a { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-3); background: var(--sheet); color: var(--ink); text-decoration: none; transition: transform var(--d-ui) var(--ease-settle), box-shadow var(--d-ui) var(--ease-settle); }
.for-kinds a:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.for-kinds img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 25%; }
.for-kinds__t { display: grid; gap: 6px; padding: 16px 52px 20px 18px; }
.for-kinds__t b { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; }
.for-kinds__t span { color: var(--ink2); font-size: var(--t-small); }
.for-kinds a > .ico { position: absolute; right: 18px; bottom: 22px; color: var(--accent); transition: transform var(--d-ui) var(--ease-settle); }
.for-kinds a:hover > .ico { transform: translateX(3px); }
.for-kinds--sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
.for-kinds--sm img { aspect-ratio: 16 / 9; }
.for-kinds--sm .for-kinds__t { padding: 12px 14px 14px; }
.for-kinds--sm .for-kinds__t b { font-size: 18px; }
.for-kinds--sm .for-kinds__t span { display: none; }
.for-kinds--sm a > .ico { display: none; }
@media (prefers-reduced-motion: reduce) { .for-kinds a, .for-kinds a > .ico { transition: none; } .for-kinds a:hover { transform: none; } }
@media (max-width: 520px) { .for-kinds--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (print) { .for-hero__cta, .for-kinds { display: none; } }
