@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700;900&family=Commissioner:wght@300;400;500;600&display=swap');

:root {
  --tile-primary: #556B2F;
  --tile-secondary: #6B8E23;
  --tile-accent: #B87333;
  --tile-background: #F8FAF5;
  --tile-surface: #FFFFFF;
  --tile-text: #2A2F1F;
  --tile-text-light: #697A55;
  --tile-border: #D5DFC5;
  --tile-hero-overlay: linear-gradient(150deg, rgba(85,107,47,0.87), rgba(107,142,35,0.5));
  --tile-rule: 3px solid var(--tile-text);
  --tile-outline: 3px solid var(--tile-accent);
  --tile-gap: clamp(1rem, 2vw, 1.75rem);
  --tile-nav-width: 18rem;
  --tile-font-heading: 'Fraunces', serif;
  --tile-font-body: 'Commissioner', sans-serif;
  --tile-font-mono: 'Courier New', Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tile-background);
  color: var(--tile-text);
  font-family: var(--tile-font-body);
  font-weight: 400;
  line-height: 1.6;
}

body.tile-menu-open {
  overflow: hidden;
}

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

a,
button,
summary {
  color: inherit;
}

a:hover,
button:hover,
summary:hover {
  background: var(--tile-text);
  color: var(--tile-background);
}

button,
.tile-button,
input,
textarea,
select {
  border: var(--tile-rule);
  background: var(--tile-surface);
  color: var(--tile-text);
  font: inherit;
  border-radius: 0;
}

button,
.tile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  background: var(--tile-accent);
  color: var(--tile-background);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--tile-font-mono);
  font-size: 0.78rem;
  outline: var(--tile-outline);
  outline-offset: -8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--tile-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 0.95;
}

p {
  margin: 0;
}

hr {
  border: 0;
  border-top: 4px solid var(--tile-text);
  margin: 0;
}

.tile-site {
  min-height: 100vh;
}

.tile-shell {
  display: grid;
  grid-template-columns: var(--tile-nav-width) minmax(0, 1fr);
  min-height: 100vh;
}

.tile-nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100vh;
  padding: 1.5rem;
  border-right: 4px solid var(--tile-text);
  background: var(--tile-surface);
}

.tile-nav[data-tile-nav-open='false'] {
  visibility: visible;
}

.tile-nav-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tile-wordmark,
.tile-nav-label,
.tile-kicker,
.tile-caption,
.tile-meta,
.tile-impact-label,
.tile-story-date,
.tile-language-button,
.tile-resource-summary,
.tile-contact-meta,
.tile-map-label {
  font-family: var(--tile-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.tile-wordmark {
  display: block;
  border: var(--tile-rule);
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  outline: var(--tile-outline);
  outline-offset: -10px;
}

.tile-wordmark strong {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--tile-font-heading);
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
}

.tile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tile-nav-link {
  display: block;
  padding: 0.95rem 1rem;
  border: var(--tile-rule);
  text-decoration: none;
  background: var(--tile-background);
  font-family: var(--tile-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tile-nav-link[aria-current='page'] {
  background: var(--tile-primary);
  color: var(--tile-background);
}

.tile-nav-footer {
  display: grid;
  gap: 1rem;
}

.tile-language {
  display: flex;
  gap: 0.6rem;
}

.tile-language-button {
  flex: 1;
  padding: 0.85rem 0.75rem;
  background: var(--tile-background);
}

.tile-language-button.is-active {
  background: var(--tile-primary);
  color: var(--tile-background);
}

.tile-hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 40;
  width: 4rem;
  height: 4rem;
  padding: 0;
  background: var(--tile-accent);
  color: var(--tile-background);
}

.tile-hamburger-box,
.tile-hamburger-box::before,
.tile-hamburger-box::after {
  display: block;
  width: 1.6rem;
  height: 3px;
  background: currentColor;
  content: '';
}

.tile-hamburger-box {
  position: relative;
}

.tile-hamburger-box::before,
.tile-hamburger-box::after {
  position: absolute;
  left: 0;
}

.tile-hamburger-box::before {
  top: -0.45rem;
}

.tile-hamburger-box::after {
  top: 0.45rem;
}

.tile-main {
  padding: var(--tile-gap);
}

.tile-page {
  display: grid;
  gap: calc(var(--tile-gap) * 1.4);
}

.tile-rule {
  border-top: 4px solid var(--tile-text);
}

.tile-grid {
  display: grid;
  gap: var(--tile-gap);
}

.tile-grid--home {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.tile-panel {
  position: relative;
  overflow: clip;
  min-height: 14rem;
  border: var(--tile-rule);
  background: var(--tile-surface);
  outline: 3px solid transparent;
  outline-offset: -10px;
}

.tile-panel:hover,
.tile-panel:focus-within {
  outline-color: var(--tile-primary);
}

.tile-panel--image {
  color: var(--tile-background);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tile-panel--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 47, 31, 0.16);
}

.tile-panel > * {
  position: relative;
  z-index: 1;
}

.tile-hero {
  grid-column: 1 / -1;
  min-height: min(78vh, 52rem);
  display: flex;
  align-items: end;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background-image: url('images/hero-1.jpg');
  background-position: center;
}

.tile-hero::before {
  background: rgba(42, 47, 31, 0.22);
}

.tile-hero-copy {
  max-width: 34rem;
  padding: 1.4rem;
  border: var(--tile-rule);
  background: rgba(248, 250, 245, 0.92);
  color: var(--tile-text);
}

.tile-hero-copy p {
  max-width: 28rem;
  font-size: 1rem;
}

.tile-program {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: end;
  padding: 1rem;
}

.tile-program:nth-of-type(1) {
  background-image: url('images/community-1.jpg');
}

.tile-program:nth-of-type(2) {
  background-image: url('images/community-2.jpg');
}

.tile-program:nth-of-type(3) {
  background-image: url('images/community-3.jpg');
}

.tile-program:nth-of-type(4) {
  background-image: url('images/community-4.jpg');
}

.tile-program-copy {
  opacity: 0;
  width: 100%;
  padding: 1rem;
  border: var(--tile-rule);
  background: rgba(248, 250, 245, 0.92);
  color: var(--tile-text);
}

.tile-program:hover .tile-program-copy,
.tile-program:focus-within .tile-program-copy {
  opacity: 1;
}

.tile-mission {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  align-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 1.4rem,
      rgba(85, 107, 47, 0.06) 1.4rem,
      rgba(85, 107, 47, 0.06) 1.6rem
    ),
    var(--tile-surface);
}

.tile-mission p {
  max-width: 52rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.tile-story {
  min-height: 24rem;
  display: flex;
  align-items: end;
  padding: 0.9rem;
  aspect-ratio: 4 / 5;
}

.tile-story:nth-of-type(1) {
  background-image: url('images/portrait-1.jpg');
}

.tile-story:nth-of-type(2) {
  background-image: url('images/portrait-2.jpg');
}

.tile-story:nth-of-type(3) {
  background-image: url('images/portrait-3.jpg');
}

.tile-story:nth-of-type(4) {
  background-image: url('images/portrait-4.jpg');
}

.tile-story:nth-of-type(5) {
  background-image: url('images/portrait-5.jpg');
}

.tile-story:nth-of-type(6) {
  background-image: url('images/portrait-6.jpg');
}

.tile-story-copy {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 0.8rem;
  border: var(--tile-rule);
  background: rgba(248, 250, 245, 0.96);
  color: var(--tile-text);
}

.tile-impact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 4px solid var(--tile-text);
  border-bottom: 4px solid var(--tile-text);
  background: var(--tile-primary);
  color: var(--tile-background);
}

.tile-impact-item {
  padding: 1.4rem 1rem;
  border-right: 3px solid rgba(248, 250, 245, 0.45);
  text-align: center;
}

.tile-impact-item:last-child {
  border-right: 0;
}

.tile-impact-value {
  display: block;
  font-family: var(--tile-font-heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.tile-team {
  min-height: 22rem;
  padding: 1rem;
  background: var(--tile-surface);
}

.tile-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tile-team-card {
  position: relative;
  min-height: 10rem;
  border: var(--tile-rule);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tile-team-card:nth-child(1) {
  background-image: url('images/portrait-1.jpg');
}

.tile-team-card:nth-child(2) {
  background-image: url('images/portrait-2.jpg');
}

.tile-team-card:nth-child(3) {
  background-image: url('images/portrait-3.jpg');
}

.tile-team-card:nth-child(4) {
  background-image: url('images/portrait-4.jpg');
}

.tile-team-card:nth-child(5) {
  background-image: url('images/portrait-5.jpg');
}

.tile-team-card:nth-child(6) {
  background-image: url('images/portrait-6.jpg');
}

.tile-team-card:nth-child(7) {
  background-image: url('images/portrait-7.jpg');
}

.tile-team-card:nth-child(8) {
  background-image: url('images/portrait-8.jpg');
}

.tile-team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 47, 31, 0.14);
}

.tile-team-meta {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border-top: var(--tile-rule);
  background: rgba(248, 250, 245, 0.96);
  color: var(--tile-text);
  opacity: 0;
}

.tile-team-card:hover .tile-team-meta,
.tile-team-card:focus-within .tile-team-meta {
  opacity: 1;
}

.tile-events {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 20rem;
}

.tile-events-visual {
  min-height: 20rem;
  border-right: var(--tile-rule);
  background: url('images/scene-1.jpg') center/cover no-repeat;
}

.tile-events-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.4rem;
}

.tile-resource {
  padding: 1.2rem;
}

.tile-resource details {
  border: var(--tile-rule);
  background: var(--tile-background);
}

.tile-resource summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.tile-resource summary::-webkit-details-marker {
  display: none;
}

.tile-resource-body {
  padding: 0 1rem 1rem;
  border-top: var(--tile-rule);
}

.tile-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-height: auto;
  border-top: 4px solid var(--tile-text);
  border-bottom: 4px solid var(--tile-text);
}

.tile-partner {
  flex: 1 1 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 1rem;
  border-right: var(--tile-rule);
  font-family: var(--tile-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: var(--tile-surface);
}

.tile-partner:last-child {
  border-right: 0;
}

.tile-map {
  display: grid;
  align-content: end;
  min-height: 22rem;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(85, 107, 47, 0.18) 2px, transparent 2px) 0 0 / 2rem 2rem,
    linear-gradient(rgba(85, 107, 47, 0.18) 2px, transparent 2px) 0 0 / 2rem 2rem,
    url('images/scene-2.jpg') center/cover no-repeat;
}

.tile-map-card {
  max-width: 18rem;
  padding: 1rem;
  border: var(--tile-rule);
  background: rgba(248, 250, 245, 0.94);
}

.tile-contact {
  display: grid;
  place-items: center;
  min-height: 14rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(184, 115, 51, 0.2), transparent 25%),
    var(--tile-surface);
}

.tile-contact-trigger {
  width: 100%;
  min-height: 100%;
  background: transparent;
  color: var(--tile-text);
  outline-offset: -12px;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: var(--tile-rule);
  font-family: var(--tile-font-heading);
  font-size: 1.5rem;
}

.tile-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(42, 47, 31, 0.74);
}

.tile-modal[aria-hidden='false'] {
  display: flex;
}

.tile-modal-panel {
  width: min(100%, 42rem);
  padding: 1.4rem;
  border: 4px solid var(--tile-text);
  background: var(--tile-surface);
}

.tile-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tile-modal-close {
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
}

.tile-contact-list,
.tile-team-page-grid,
.tile-program-page-grid,
.tile-about-strip,
.tile-contact-page-grid,
.tile-form,
.tile-form-row {
  display: grid;
  gap: var(--tile-gap);
}

.tile-contact-list a {
  color: var(--tile-accent);
}

.tile-page-hero {
  min-height: 24rem;
  display: grid;
  align-content: end;
  padding: 1.5rem;
}

.tile-page-hero--about {
  background: url('images/hero-2.jpg') center/cover no-repeat;
}

.tile-page-hero--team {
  background: url('images/hero-3.jpg') center/cover no-repeat;
}

.tile-page-hero--programs {
  background: url('images/community-4.jpg') center/cover no-repeat;
}

.tile-page-hero--contact {
  background: url('images/scene-3.jpg') center/cover no-repeat;
}

.tile-page-hero-card {
  max-width: 30rem;
  padding: 1.25rem;
  border: var(--tile-rule);
  background: rgba(248, 250, 245, 0.94);
}

.tile-about-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile-about-photo {
  min-height: 18rem;
  border: var(--tile-rule);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tile-about-photo--history {
  background-image: url('images/scene-1.jpg');
}

.tile-about-photo--mission {
  background-image: url('images/community-2.jpg');
}

.tile-about-photo--landscape {
  background-image: url('images/scene-2.jpg');
}

.tile-team-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-team-profile {
  border: var(--tile-rule);
  background: var(--tile-surface);
}

.tile-team-profile-photo {
  aspect-ratio: 4 / 5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: var(--tile-rule);
}

.tile-team-profile:nth-child(1) .tile-team-profile-photo {
  background-image: url('images/portrait-1.jpg');
}

.tile-team-profile:nth-child(2) .tile-team-profile-photo {
  background-image: url('images/portrait-2.jpg');
}

.tile-team-profile:nth-child(3) .tile-team-profile-photo {
  background-image: url('images/portrait-3.jpg');
}

.tile-team-profile:nth-child(4) .tile-team-profile-photo {
  background-image: url('images/portrait-4.jpg');
}

.tile-team-profile:nth-child(5) .tile-team-profile-photo {
  background-image: url('images/portrait-5.jpg');
}

.tile-team-profile:nth-child(6) .tile-team-profile-photo {
  background-image: url('images/portrait-6.jpg');
}

.tile-team-profile:nth-child(7) .tile-team-profile-photo {
  background-image: url('images/portrait-7.jpg');
}

.tile-team-profile:nth-child(8) .tile-team-profile-photo {
  background-image: url('images/portrait-8.jpg');
}

.tile-team-profile-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.tile-program-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile-program-feature {
  min-height: 26rem;
  display: grid;
  align-content: end;
  padding: 1rem;
  color: var(--tile-background);
  border: var(--tile-rule);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tile-program-feature:nth-child(1) {
  background-image: url('images/community-1.jpg');
}

.tile-program-feature:nth-child(2) {
  background-image: url('images/scene-1.jpg');
}

.tile-program-feature:nth-child(3) {
  background-image: url('images/community-3.jpg');
}

.tile-program-feature:nth-child(4) {
  background-image: url('images/scene-3.jpg');
}

.tile-program-feature-copy {
  max-width: 22rem;
  padding: 1rem;
  border: var(--tile-rule);
  background: rgba(42, 47, 31, 0.9);
}

.tile-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: var(--tile-rule);
  background: var(--tile-surface);
}

.tile-contact-page-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.tile-contact-visual {
  min-height: 18rem;
  border-right: var(--tile-rule);
  background: url('images/hero-3.jpg') center/cover no-repeat;
}

.tile-contact-copy {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

.tile-contact-copy strong,
.tile-link-accent {
  color: var(--tile-accent);
}

.tile-form-card,
.tile-info-card {
  padding: 1.4rem;
}

.tile-form-card {
  min-height: 100%;
}

.tile-form-row {
  gap: 0.6rem;
}

.tile-form-label {
  font-family: var(--tile-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.tile-form input,
.tile-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--tile-background);
}

.tile-form textarea {
  min-height: 11rem;
  resize: vertical;
}

.fade-in {
  opacity: 0;
  transform: translateY(2.5rem);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tile-home .tile-hero {
  grid-column: span 12;
}

.tile-home .tile-program {
  grid-column: span 3;
}

.tile-home .tile-mission {
  grid-column: span 12;
}

.tile-home .tile-story {
  grid-column: span 4;
}

.tile-home .tile-impact {
  grid-column: span 12;
}

.tile-home .tile-team {
  grid-column: span 8;
}

.tile-home .tile-events {
  grid-column: span 4;
}

.tile-home .tile-resource,
.tile-home .tile-map,
.tile-home .tile-contact {
  grid-column: span 4;
}

.tile-home .tile-partners {
  grid-column: span 12;
}

[data-tile-lang='en'] [data-tile-copy='sv'],
[data-tile-lang='sv'] [data-tile-copy='en'] {
  display: none !important;
}

@media (max-width: 1180px) {
  .tile-shell {
    grid-template-columns: 1fr;
  }

  .tile-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(22rem, 88vw);
    transform: translateX(-100%);
    border-right: 4px solid var(--tile-text);
  }

  .tile-nav[data-tile-nav-open='true'] {
    transform: translateX(0);
  }

  .tile-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tile-main {
    padding-top: 6rem;
  }

  .tile-home .tile-program,
  .tile-home .tile-story,
  .tile-home .tile-team,
  .tile-home .tile-events,
  .tile-home .tile-resource,
  .tile-home .tile-map,
  .tile-home .tile-contact {
    grid-column: span 6;
  }

  .tile-impact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-team-grid,
  .tile-team-page-grid,
  .tile-about-strip,
  .tile-program-page-grid,
  .tile-contact-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --tile-gap: 1rem;
  }

  .tile-main {
    padding-inline: 1rem;
  }

  .tile-grid--home,
  .tile-impact,
  .tile-events,
  .tile-contact-card,
  .tile-team-grid,
  .tile-team-page-grid,
  .tile-about-strip,
  .tile-program-page-grid,
  .tile-contact-page-grid {
    grid-template-columns: 1fr;
  }

  .tile-home .tile-program,
  .tile-home .tile-story,
  .tile-home .tile-team,
  .tile-home .tile-events,
  .tile-home .tile-resource,
  .tile-home .tile-map,
  .tile-home .tile-contact,
  .tile-home .tile-partners,
  .tile-home .tile-impact,
  .tile-home .tile-mission,
  .tile-home .tile-hero {
    grid-column: span 12;
  }

  .tile-program,
  .tile-story,
  .tile-map {
    aspect-ratio: auto;
    min-height: 18rem;
  }

  .tile-events-visual,
  .tile-contact-visual {
    border-right: 0;
    border-bottom: var(--tile-rule);
  }

  .tile-impact-item {
    border-right: 0;
    border-bottom: 3px solid rgba(248, 250, 245, 0.45);
  }

  .tile-impact-item:last-child {
    border-bottom: 0;
  }

  .tile-partner {
    border-right: 0;
    border-bottom: var(--tile-rule);
  }

  .tile-partner:last-child {
    border-bottom: 0;
  }
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
