/* about.css: moved out of src/views/About.astro on 2026-10-27, so a style fix is a single file upload. */

@scope (main) to (.tour-card > *, .inquiry > *, .map > *, .climate > *, .profile > *) {
  .story {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(28px, 6vw, 88px);
    align-items: center;
  }
  /* The mint block peeks out behind the photo. */
  .story-photo {
    position: relative;
    padding: 0 0 22px 22px;
  }
  .story-photo::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 62%;
    height: 62%;
    border-radius: var(--radius);
    background: var(--accent);
  }
  .story-photo img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
  }
  .story h2 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  }
  .story p {
    color: var(--ink-soft);
  }
  .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 32px 0 0;
    border-top: 1px solid var(--line);
  }
  .facts div {
    padding: 22px 16px 0 0;
  }
  .facts div + div {
    padding-left: clamp(14px, 2vw, 26px);
    border-left: 1px solid var(--line);
  }
  .facts dt {
    font: 600 clamp(2.2rem, 4.4vw, 3.2rem) / 1 var(--title);
    color: var(--accent-deep);
  }
  .facts dd {
    margin: 8px 0 0;
    font: 700 0.76rem/1.35 var(--head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .day {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.6vw, 34px);
  }
  .day img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
  }
  .day span {
    display: block;
    margin: 20px 0 8px;
    font: 700 0.78rem/1 var(--head);
    letter-spacing: 0.14em;
    color: var(--accent-deep);
  }
  .day h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
  }
  .day p {
    color: var(--ink-soft);
  }

  .lead-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
  }
  .lead-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--white);
  }
  .lead-card h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  }
  .lead-card p {
    max-width: 62ch;
    color: rgb(255 255 255 / 0.82);
  }
  .role {
    display: block;
    margin: 10px 0 16px;
    font: 700 0.74rem/1.3 var(--head);
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .heads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: clamp(32px, 5vw, 56px);
    border-top: 1px solid rgb(255 255 255 / 0.18);
  }
  .heads li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 28px 0 0;
  }
  .heads li + li {
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid rgb(255 255 255 / 0.18);
  }
  .heads li:first-child {
    padding-right: clamp(20px, 3vw, 40px);
  }
  .heads img,
  .mono {
    width: 72px;
    height: 72px;
    border-radius: 50%;
  }
  .heads img {
    object-fit: cover;
    background: var(--white);
  }
  .mono {
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.3);
    font: 600 1.15rem/1 var(--title);
    letter-spacing: 0.04em;
    color: var(--accent);
  }
  .heads .role {
    margin: 8px 0 10px;
  }
  .heads p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.76);
  }

  /* Values: one panel split by hairlines. */
  .values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }
  .values li {
    padding: clamp(22px, 2.4vw, 30px);
  }
  .values li + li {
    border-left: 1px solid var(--line);
  }
  .values svg {
    color: var(--accent-deep);
  }
  .values h3 {
    margin: 14px 0 8px;
  }
  .values p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink-soft);
  }

  .moments {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-rows: repeat(2, clamp(180px, 22vw, 270px));
    gap: clamp(10px, 1.4vw, 18px);
  }
  .moments img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
  }
  /* Each photo sits in a <picture>, so its place in the row is counted on that wrapper. */
  .moments picture:nth-child(1) > img {
    grid-row: span 2;
  }
  .moments picture:nth-child(2) > img {
    grid-column: span 2;
  }

  .cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    margin-top: 20px;
  }
  .links .more::after {
    border-color: var(--accent);
  }
  .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  @media (max-width: 1000px) {
    .values {
      grid-template-columns: 1fr 1fr;
    }
    .values li:nth-child(odd) {
      border-left: 0;
    }
    .values li:nth-child(n + 3) {
      border-top: 1px solid var(--line);
    }
  }
  @media (max-width: 900px) {
    .story {
      grid-template-columns: minmax(0, 1fr);
    }
    .story-photo {
      max-width: 520px;
    }
    .story-photo img {
      aspect-ratio: 4 / 3;
    }
  }
  @media (max-width: 800px) {
    .day {
      grid-template-columns: minmax(0, 1fr);
      gap: 36px;
    }
    .moments {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: none;
      grid-auto-rows: 42vw;
    }
    .moments picture:nth-child(1) > img {
      grid-row: auto;
    }
    /* Wide, two small, wide: no gaps with four photos. */
    .moments picture:nth-child(2) > img {
      order: -1;
    }
    .moments picture:nth-child(4) > img {
      grid-column: span 2;
    }
  }
  @media (max-width: 700px) {
    /* Long words in some languages (sværhedsgrader, vanskelighetsgrader) need room on a phone. */
    .facts {
      grid-template-columns: minmax(0, 1fr);
    }
    .facts div,
    .facts div + div {
      display: flex;
      align-items: baseline;
      gap: 14px;
      padding: 14px 0;
      border-left: 0;
      border-bottom: 1px solid var(--line);
    }
    .facts dt {
      min-width: 1.4em;
    }
    .facts dd {
      margin: 0;
    }
    .heads,
    .values {
      grid-template-columns: minmax(0, 1fr);
    }
    .lead-card {
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
    }
    .lead-card img {
      width: 160px;
    }
    .heads li + li,
    .heads li:first-child {
      padding-inline: 0;
      border-left: 0;
    }
    .values li + li {
      border-left: 0;
      border-top: 1px solid var(--line);
    }
  }
}
