/* Página /links — a "bio" do Instagram. Mesmas fontes e cores do site, sem o peso do style.css. */
@font-face { font-family: 'Shippori Mincho'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ShipporiMincho-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ZenKakuGothicNew-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ZenKakuGothicNew-700-latin.woff2) format('woff2'); }

:root {
  --ink: #101122;
  --navy: #17182f;
  --red: #d8312a;
  --red-text: #ff6f60;
  --on-dark: #efe8dc;
  --muted-dark: #aaa5b6;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* a página escala pela ALTURA: logo, botões e espaços encolhem juntos para os 9 botões caberem na 1ª tela do celular */
  --gap: clamp(.35rem, 1svh, .75rem);
  --btn-h: clamp(2.75rem, 5.6svh, 3.6rem);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cdefs%3E%3Cg id='w'%3E%3Ccircle r='30'/%3E%3Ccircle r='23'/%3E%3Ccircle r='16'/%3E%3Ccircle r='9'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='%2317182f' stroke='%23ffffff' stroke-opacity='.075'%3E%3Cuse href='%23w' x='30' y='-15'/%3E%3Cuse href='%23w' x='0' y='0'/%3E%3Cuse href='%23w' x='60' y='0'/%3E%3Cuse href='%23w' x='30' y='15'/%3E%3Cuse href='%23w' x='0' y='30'/%3E%3Cuse href='%23w' x='60' y='30'/%3E%3Cuse href='%23w' x='30' y='45'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(.75rem, 2.2svh, 3rem) 1rem 1rem;
  background: var(--ink) var(--wave);
  color: var(--on-dark);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }

.links { width: 100%; max-width: 26rem; display: flex; flex-direction: column; align-items: center; }
/* seletor de idioma (HTML gerado por scripts/i18n.py) */
.lang { display: flex; gap: .5rem; margin-bottom: var(--gap); }
.lang__item {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: 0 .9rem;
  border: 1px solid rgb(239 232 220 / .4); border-radius: 2rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
}
.lang__item img { width: 1.25rem; height: .875rem; border-radius: 2px; box-shadow: 0 0 0 1px rgb(128 128 128 / .45); }
.lang__item:hover { border-color: var(--on-dark); }
.lang__item[aria-current="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.links__logo { width: clamp(7rem, 20svh, 13rem); max-width: 62vw; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.links__sub { margin-top: calc(var(--gap) * .6); color: var(--muted-dark); font-size: .85rem; text-align: center; }
.links__title { margin-top: 1.5rem; font: 700 clamp(1.6rem, 6vw, 2rem)/1.25 var(--serif); text-align: center; } /* só na 404.html */

.links__promo {
  width: 100%; margin-top: var(--gap); padding: .55rem .9rem; display: grid; gap: .05rem; text-align: center;
  background: #4a1a26; border: 1px solid rgb(239 232 220 / .25); border-radius: .6rem;
  font-size: .8rem; line-height: 1.35;
}
.links__promo b { font: 700 1rem/1.25 var(--serif); color: var(--red-text); }
html.daily .only-before, html:not(.daily) .only-daily { display: none; }
html.aniv-over .links__promo { display: none; }

.links__list { width: 100%; margin-top: calc(var(--gap) * 1.6); display: grid; gap: var(--gap); }

.btn {
  --bg: rgb(255 255 255 / .06); --fg: var(--on-dark); --line: rgb(239 232 220 / .35);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: .7rem;
  min-height: var(--btn-h); padding: .45rem 1rem;
  background: var(--bg); color: var(--fg);
  font: 700 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--line); border-radius: .7rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--on-dark);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--on-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { flex: none; width: 1.1rem; height: 1.1rem; fill: currentColor; }
.btn span { flex: 1; text-align: center; padding-right: 1.1rem; } /* compensa o ícone p/ o texto ficar centrado */

.btn--primary { --bg: var(--red); --fg: #fff; --line: var(--red); box-shadow: 0 .7rem 1.4rem -.9rem rgb(216 49 42 / .75); }
.btn--primary::before { background: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--red); border-color: #fff; }

.links__foot { margin-top: auto; padding-top: 1.25rem; font-size: .8rem; color: var(--muted-dark); text-align: center; }
.links__foot a { text-decoration: none; border-bottom: 1px solid rgb(170 165 182 / .5); }
.links__foot a:hover, .links__foot a:focus-visible { color: var(--on-dark); border-color: var(--on-dark); }

/* celular em pé baixo (iPhone SE, 360×640): some a linha do bairro e tudo aperta mais */
@media (max-height: 700px) {
  :root { --btn-h: 2.65rem; }
  .links__sub { display: none; }
  .lang__item { min-height: 2.25rem; }
  .links__promo { padding: .4rem .75rem; font-size: .75rem; }
}
/* celular muito pequeno (iPhone SE 1ª geração, 320×568): aperta o resto; os botões ficam um pouco abaixo dos 44px, só aqui */
@media (max-height: 600px) {
  :root { --btn-h: 2.4rem; --gap: .3rem; }
  body { padding-top: .5rem; padding-bottom: .5rem; }
  .links__logo { width: 5.5rem; }
  .lang__item { min-height: 2rem; }
  .links__promo { padding: .3rem .6rem; font-size: .7rem; }
  .btn { padding: .3rem .8rem; font-size: .85rem; }
  .links__foot { display: none; }
}
/* celular deitado: cabeçalho enxuto e os botões em 3 colunas, para a lista inteira caber na tela */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --btn-h: 2.5rem; }
  body { padding-top: .5rem; }
  .links { max-width: 46rem; }
  .links__logo { width: 5rem; }
  .links__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .5rem; }
  .links__list li:first-child { grid-column: 1 / -1; }
  .btn { gap: .5rem; padding: .35rem .7rem; font-size: .85rem; }
  .links__foot { padding-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before { transition: none; }
  .btn:hover, .btn:focus-visible { transform: none; }
}
