/* ============================================================
   Amsterdam da Mila — design system
   Delftware ground · canal-house verticality · one lit window
   ============================================================ */

:root {
  --porcelain: #f2f0e9;
  --card: #faf8f2;
  --delft: #1e3d8f;
  --delft-deep: #14265c;
  --wash: #dce4f2;
  --wash-2: #edf0f6;
  --ink: #141f3c;
  --muted: #46527a;
  --orange: #e8710f;
  --orange-lt: #f29a4d;
  --lit: #f7b733;
  --brick: #b03a2e;
  --night: #111a2e;
  --line: rgba(30, 61, 143, 0.28);
  --line-soft: rgba(30, 61, 143, 0.16);
  --display: "Anton", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--delft);
}

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: min(1120px, calc(100% - 2 * clamp(18px, 4vw, 44px)));
  margin-inline: auto;
}

/* ---------- header: brand + gable-row nav ---------- */

.site-head {
  background: var(--porcelain);
  border-bottom: 2px solid var(--delft);
  position: relative;
}

.site-head::after {
  /* the waterline under the houses */
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 16px;
}

.brand .brand-city {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--delft);
}

.brand .brand-mila {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--orange);
}

.site-nav {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 2vw, 26px);
  overflow-x: auto;
  padding-bottom: 0;
}

.nav-house {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  flex: none;
  padding-top: 6px;
}

.nav-house svg {
  height: 54px;
  width: auto;
  display: block;
}

.nav-house .h {
  fill: transparent;
  stroke: var(--delft);
  stroke-width: 2.25;
  stroke-linejoin: round;
}

.nav-house .w {
  fill: var(--wash);
  stroke: var(--delft);
  stroke-width: 1.25;
  transition: fill 0.25s ease;
}

.nav-house .d {
  fill: var(--delft);
}

.nav-house span {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--delft);
  white-space: nowrap;
}

.nav-house:hover .w,
.nav-house:focus-visible .w {
  fill: var(--lit);
}

.nav-house[aria-current="page"] .h {
  fill: var(--delft);
}

.nav-house[aria-current="page"] .w {
  fill: var(--lit);
  stroke: var(--delft-deep);
}

.nav-house[aria-current="page"] .d {
  fill: var(--porcelain);
}

.nav-house[aria-current="page"] span {
  color: var(--orange);
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.28) 0%, rgba(17, 26, 46, 0.66) 78%),
    url("../img/hero-canal.jpg") center 40% / cover no-repeat;
  color: #fff;
}

.hero .wrap {
  position: relative;
  padding-bottom: clamp(90px, 14vh, 150px);
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lit);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  font-weight: 400;
}

.hero .hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
  margin-top: 18px;
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(38px, 7vw, 84px);
  display: block;
}

/* ---------- interior page band ---------- */

.band {
  position: relative;
  background: var(--delft);
  color: #fff;
  padding-top: clamp(48px, 8vw, 84px);
  padding-bottom: clamp(96px, 13vw, 150px);
}

.band .eyebrow {
  color: var(--orange-lt);
}

.band h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 10px;
}

.band .lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--wash);
  max-width: 60ch;
  margin-top: 16px;
}

.band .lede a {
  color: #fff;
}

/* ---------- shared text pieces ---------- */

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.section {
  padding-block: clamp(48px, 8vw, 84px);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--delft);
  margin-top: 8px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.xxx {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--delft);
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  line-height: 1;
  justify-content: center;
  margin-block: clamp(10px, 2vw, 22px);
}

.xxx::before,
.xxx::after {
  content: "";
  height: 1.5px;
  flex: 1;
  max-width: 160px;
  background: var(--line);
}

/* ---------- delft tiles & cards ---------- */

.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
}

.tile::before,
.tile::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--line);
  pointer-events: none;
}

.tile::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 0;
  border-bottom-right-radius: 100%;
  border-color: var(--delft);
}

.tile::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
  border-top-left-radius: 100%;
  border-color: var(--delft);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 28px);
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
}

.place {
  display: flex;
  flex-direction: column;
}

.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--wash);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 0.55s ease;
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--delft);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.place:hover .ph img {
  transform: scale(1.035);
}

.place-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.place-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--ink);
}

.place-body p {
  font-size: 0.99rem;
  color: var(--muted);
}

.place-body .links {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.place-body .links a,
.maplink {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--delft);
  text-decoration: none;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 2px;
}

.place-body .links a:hover,
.maplink:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--delft);
  border: 1px solid var(--line);
  padding: 4px 9px;
  white-space: nowrap;
}

.chip.warn {
  color: var(--orange);
  border-color: rgba(232, 113, 15, 0.5);
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
}

.feature .ph {
  aspect-ratio: auto;
  min-height: 300px;
  height: 100%;
}

.feature .place-body {
  padding: clamp(22px, 3.4vw, 40px);
  justify-content: center;
}

.feature .place-body h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.feature .place-body p {
  font-size: 1.02rem;
}

.feature .place-body .links {
  margin-top: 0;
}

.feature.flip .ph {
  order: 2;
}

.feature + .feature {
  margin-top: clamp(16px, 2.6vw, 28px);
}

@media (max-width: 780px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }

  .feature.flip .ph {
    order: 0;
  }

  .feature .ph {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* ---------- dica da Mila callout ---------- */

.dica {
  background: var(--wash-2);
  border: 1.5px solid var(--delft);
  padding: 20px 22px 18px;
  font-style: italic;
  color: var(--ink);
  max-width: 66ch;
}

.dica strong {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

/* ---------- numbered itinerary (real sequence) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2.6vw, 28px);
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 24px 22px 26px;
}

.step::marker {
  content: none;
}

.step .n {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* ---------- compact text tiles (shops, drinks) ---------- */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.mini {
  padding: 16px 16px 18px;
}

.mini h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.mini p {
  font-size: 0.9rem;
  color: var(--muted);
}

.mini .tag {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 7px;
}

/* ---------- index section-cards ---------- */

.portal {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.portal .place-body h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.3rem;
  color: var(--delft);
}

.portal .go {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: clamp(40px, 7vw, 72px);
  background: var(--night);
  color: var(--wash);
}

.flagband {
  display: grid;
  grid-template-rows: 1fr 1.3fr 1fr;
  height: 38px;
}

.flagband .r {
  background: #c0392b;
}

.flagband .x {
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 1.4em;
  text-indent: 1.4em;
  line-height: 1;
}

.site-foot .wrap {
  padding-block: clamp(34px, 5vw, 54px);
  display: flex;
  flex-wrap: wrap;
  gap: 28px 60px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-foot .foot-brand {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
  color: #fff;
}

.site-foot p {
  font-size: 0.92rem;
  max-width: 44ch;
  color: rgba(220, 228, 242, 0.8);
}

.site-foot a {
  color: var(--lit);
}

.site-foot nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-foot nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wash);
  text-decoration: none;
}

.site-foot nav a:hover {
  color: var(--lit);
}

/* ---------- credits page ---------- */

.credits-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.credits-list li {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.credits-list b {
  color: var(--ink);
  font-weight: 600;
}

.credits-list .lic {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--delft);
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.55s ease, translate 0.55s ease;
}

.reveal.in {
  opacity: 1;
  translate: 0 0;
}

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

  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .ph img,
  .place:hover .ph img {
    transition: none;
    transform: none;
  }
}
