/* ==========================================================================
   NY Guide por Thalita Cotrofe
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* cores */
  --ink: #111111;
  --black: #020205;
  --white: #ffffff;
  --cream: #e8ddba;
  --plum: #865e90;

  /* fontes */
  --sans: "Outfit", Arial, sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;

  /* tamanhos */
  --title-size: clamp(40px, 4.9vw, 70px);
  --hero-size: clamp(64px, 11.8vw, 170px);
  --place-name: 25px;
  --place-tip: 18px;

  /* espaçamentos */
  --header-h: 60px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 9vw, 120px);
  --place-w: 450px;
  --place-h: 60px;
  --gap: 12px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; font-weight: 400; }
em { font-family: var(--serif); font-style: italic; }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--cream);
  color: var(--black);
}

.logo {
  color: inherit;
  text-decoration: none;
  font-size: 22px;
  white-space: nowrap;
}
.logo strong {
  font-weight: 400;
  font-size: 25px;
  text-transform: uppercase;
  margin-right: 6px;
}

.site-header ul {
  display: flex;
  gap: 28px;
}
.site-header nav a {
  position: relative;
  display: block;
  padding: 5px 0;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: -.01em;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .2s var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { transform: scaleX(1); }
.site-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (min-width: 1100px) {
  .site-header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Títulos: parte sem serifa + parte em itálico
   -------------------------------------------------------------------------- */
.title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: .2em;
  font-size: var(--title-size);
  line-height: 1.2;
  text-align: center;
}
.title__serif { font-family: var(--serif); }

/* --------------------------------------------------------------------------
   Capa (hero) e capas de bairro
   -------------------------------------------------------------------------- */
.hero,
.cover {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover .title,
.hero__title { position: relative; }

.cover { place-items: center; padding: var(--gutter); }
.cover--short { min-height: 80vh; min-height: 80svh; }

.hero { align-items: end; padding: 0 20px 9vh; }
.hero__title {
  font-size: var(--hero-size);
  line-height: 1.2;
}
.hero__title span,
.hero__title em { display: block; }

/* --------------------------------------------------------------------------
   Apresentação
   -------------------------------------------------------------------------- */
.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--section-pad) var(--gutter);
  background: var(--plum);
  text-align: center;
}
.bio__photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}
.bio p {
  max-width: 720px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.2;
}
.bio p + p { margin-top: 1.2em; }

/* --------------------------------------------------------------------------
   Blocos de lista (texto | foto)
   -------------------------------------------------------------------------- */
.block {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}
.block--split       { grid-template-columns: 1fr 1fr; }
.block--wide        { grid-template-columns: 7fr 3fr; }
.block--aside       { grid-template-columns: 3fr 7fr; }

.block__photo { position: relative; min-height: 100%; }
.block__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block__aside {
  display: flex;
  align-items: center;
  justify-content: center;
}
.title--vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  flex-wrap: nowrap;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  padding: var(--section-pad) var(--gutter);
  background: var(--bg, transparent);
}
.panel > .title { margin-bottom: 36px; }

.places {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  width: min(var(--place-w), 100%);
}

/* --------------------------------------------------------------------------
   Botão de lugar
   -------------------------------------------------------------------------- */
.place {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: var(--place-h);
  padding: 12px 72px 12px 24px;
  border: 3px solid var(--white);
  border-radius: 25px;
  color: var(--white);
  text-decoration: none;
  transition:
    transform .2s var(--ease),
    background-color .2s var(--ease),
    box-shadow .2s var(--ease);
}
.place__name {
  font-size: var(--place-name);
  line-height: 1.2;
  text-transform: uppercase;
}
.place__tip {
  font-family: var(--serif);
  font-size: var(--place-tip);
  line-height: 1.2;
  opacity: .9;
}
.place__icon {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  transition: transform .2s var(--ease);
}

.place:hover {
  background-color: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35);
}
.place:hover .place__icon { transform: translateY(-50%) scale(1.08); }
.place:active {
  transform: none;
  background-color: rgba(255, 255, 255, .24);
  box-shadow: none;
}
.place:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  background-color: rgba(255, 255, 255, .16);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: var(--black);
  font-family: var(--serif);
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  :root {
    --place-w: 420px;
    --place-name: 20px;
    --place-tip: 15px;
  }
  .site-header ul { gap: 18px; }
  .site-header nav a { font-size: 13px; }
  .logo { font-size: 18px; }
  .logo strong { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Celular: tudo empilhado
   -------------------------------------------------------------------------- */
@media (max-width: 809px) {
  :root {
    --place-w: 100%;
    --place-h: 56px;
    --place-name: 16px;
    --place-tip: 13px;
    --gap: 10px;
  }
  .site-header nav { display: none; }
  .site-header { justify-content: center; }

  .block,
  .block--split,
  .block--wide,
  .block--aside { grid-template-columns: 1fr; min-height: 0; }
  .block__photo { min-height: 62vh; }
  .panel { padding: 72px 20px; }

  .block__aside { padding-top: 72px; }
  .block--aside .panel { padding-top: 36px; }
  .title--vertical { writing-mode: horizontal-tb; transform: none; flex-wrap: wrap; }

  .place { padding: 12px 56px 12px 20px; }
  .place__icon { right: 16px; width: 34px; height: 34px; }
  .bio__photo { width: 200px; height: 200px; }
}

/* --------------------------------------------------------------------------
   Menos movimento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .place,
  .place__icon,
  .site-header nav a::after { transition: none; }
  .place:hover { transform: none; }
}
