@font-face {
  font-family: "Pagella";
  src: url("../fonts/pagella-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pagella";
  src: url("../fonts/pagella-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pagella";
  src: url("../fonts/pagella-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --ink: #0c0b0a;          /* fundo: preto levemente quente */
  --paper: #efe7d6;        /* texto: creme do papel */
  --paper-dim: #a79f8f;    /* texto secundario */
  --line: rgba(239, 231, 214, 0.25);
  --serif: "Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.cart {
  position: absolute;
  top: 22px; right: var(--gutter);
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
  font-weight: 700;
  opacity: .85;
  transition: opacity .2s;
}
.cart:hover { opacity: 1; }
.cart svg { width: 24px; height: 24px; }
.cart-count { font-size: 15px; }

.sky {
  position: relative;
  margin-top: 28px !important;
  aspect-ratio: 1760 / 425;
  margin: 0 calc(var(--gutter) * -0.5);
}
.sky-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}

/* Estrelas: cada uma brilha sozinha no hover */
.sky-stars path, .sky-stars circle {
  fill: #fff;
  stroke: transparent;
  stroke-width: 28;          /* area de hover maior que a estrela */
  pointer-events: all;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .4s ease;
}
.sky-stars path:hover, .sky-stars circle:hover {
  filter: url(#star-glow);
  transform: scale(1.35);
}

/* Lua: moldura com a mesma proporcao do SVG, centrada no ceu */
.moon-frame {
  position: absolute; left: 0; right: 0; top: 50%;
  aspect-ratio: 1760 / 425;
  transform: translateY(-50%);
  pointer-events: none;
}
.moon {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: filter .5s ease;
}
.sky-moon {                 /* area de hover so sobre o circulo da lua */
  position: absolute; z-index: 1;
  left: 39.14%; width: 21.03%;
  top: 6.1%; height: 88.83%;
  border-radius: 50%;
  pointer-events: auto;
}
.sky-moon:hover + .moon,
.sky-moon:focus-visible + .moon {
  filter: drop-shadow(0 0 14px rgba(255, 246, 224, .55))
          drop-shadow(0 0 40px rgba(255, 246, 224, .3));
}

.nav { margin-top: 12px; }
.rule { width: 100%; height: auto; opacity: .9; }
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 4%;
}
.nav-left, .nav-right {
  display: flex; gap: clamp(20px, 4vw, 52px);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .01em;
}
.nav-left { justify-content: flex-start; padding-left: 6%; }
.nav-right { justify-content: flex-end; padding-right: 6%; }
.nav a { transition: opacity .2s; }
.nav-left a:hover, .nav-right a:hover { opacity: .65; }
.wordmark img {
  width: clamp(150px, 17vw, 200px);
  transition: filter .4s ease;
}
.wordmark:hover img, .wordmark:focus-visible img {
  filter: drop-shadow(0 0 6px rgba(255, 246, 224, .6))
          drop-shadow(0 0 18px rgba(255, 246, 224, .3));
}

/* ---------- Prints ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 40px;
}
.prints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px);
  align-items: start;
}
.print img {
  width: 100%;
  transition: transform .4s ease;
}
.print > a { display: block; overflow: hidden; }
.print > a:hover img { transform: scale(1.015); }
.print h2 {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  margin: 20px 0 2px;
}
.print .meta {
  margin: 0;
  color: var(--paper-dim);
  font-style: italic;
  font-size: 15px;
}
.print .desc {
  margin: 10px 0 0;
  max-width: 46ch;
  font-size: 16px;
}
.print .price {
  margin: 10px 0 0;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 var(--gutter) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 48px;
  align-items: stretch;
  padding-top: 48px;
}
/* copyright desce ate a linha do "Legal notice" */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .copy { margin-top: auto; padding-top: 16px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links .legal { margin-top: auto; }
.signature { width: min(260px, 100%); margin-bottom: 20px; }
address { font-style: normal; color: var(--paper-dim); font-size: 15px; }
address a { color: var(--paper); border-bottom: 1px solid var(--line); }

.subscribe { min-width: 0; }
.subscribe h3 { font-weight: 700; font-size: 22px; margin: 0 0 4px; }
.subscribe p { margin: 0 0 16px; color: var(--paper-dim); font-size: 15px; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font: inherit; font-size: 15px;
  padding: 10px 14px;
  border-radius: 0;
}
.field input::placeholder { color: var(--paper-dim); }
.field input:focus { outline: none; border-color: var(--paper); }
.field button {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 10px 18px;
  cursor: pointer;
}
.field button:hover { background: #fff; }
.subscribe .note { margin-top: 10px; color: var(--paper); min-height: 1.5em; }

.footer-links { justify-self: end; text-align: right; }
.social { display: flex; gap: 14px; justify-content: flex-end; margin-bottom: 18px; }
.social svg { width: 24px; height: 24px; }
.social a { opacity: .8; }
.social a:hover { opacity: 1; }
.footer-nav {
  display: flex; gap: 18px; justify-content: flex-end;
  font-weight: 700; font-size: 17px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.footer-nav a { transition: opacity .2s; }
.footer-nav a:hover { opacity: .65; }
.legal { font-size: 14px; color: var(--paper-dim); }
.legal li { margin: 2px 0; }
.legal a:hover { color: var(--paper); }
.copy { font-size: 14px; line-height: 1.55; color: var(--paper-dim); margin: 16px 0 0; }

/* ---------- Contact ---------- */
.contact {
  max-width: 760px;
  padding-top: clamp(48px, 7vw, 88px);
  text-align: center;
}
.contact-rule { width: min(360px, 70%); margin: 0 auto; opacity: .9; }
.contact-intro {
  max-width: 54ch;
  margin: 36px auto 0;
  color: var(--paper-dim);
}
.contact-intro p { margin: 0 0 14px; }

.contact-form {
  display: grid;
  gap: 26px;
  margin-top: clamp(48px, 6vw, 72px);
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.contact-form label { display: grid; gap: 8px; min-width: 0; }
.contact-form label span { font-weight: 700; font-size: 17px; }
.contact-form em { font-style: normal; color: var(--paper-dim); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  font: inherit; font-size: 16px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--paper); }
.contact-form.tried :invalid { border-color: #c98a6b; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions button {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  font: inherit; font-weight: 700; font-size: 17px;
  padding: 12px 40px;
  cursor: pointer;
  transition: background .2s;
}
.form-actions button:hover { background: #fff; }
.form-actions .note { margin: 0; color: var(--paper-dim); font-size: 15px; }
.form-actions .note a { color: var(--paper); border-bottom: 1px solid var(--line); }
.form-actions button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.nav a[aria-current="page"] { opacity: .65; }

/* ---------- About ---------- */
.about { padding-top: clamp(48px, 7vw, 88px); }
.contact h1, .about h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 22px;
  padding-left: .18em; /* compensa o letter-spacing para centrar */
}
.about-intro { max-width: 60ch; margin: 36px auto 0; text-align: center; }
.about-intro .tagline { font-style: italic; font-size: 20px; margin: 0 0 18px; }
.about-intro p { margin: 0; color: var(--paper-dim); }

.story {
  max-width: 62ch;
  margin: clamp(56px, 7vw, 88px) auto 0;
}
.story h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  text-align: center;
  margin: 0 0 32px;
}
.story p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}
.story p:first-of-type::first-letter {   /* capitular, como num livro impresso */
  float: left;
  font-weight: 700;
  font-size: 4.2em;
  line-height: .8;
  margin: .08em .1em 0 0;
}
.story p:nth-of-type(2) {                 /* a frase do nome, em destaque */
  font-style: italic;
  font-size: 21px;
  text-align: center;
  margin: 32px 0;
}
.about-rule { margin-top: clamp(56px, 7vw, 88px); }
.member-social { display: flex; gap: 16px; margin-top: 28px; }
.member-social svg { width: 28px; height: 28px; }
.member-social a { display: block; opacity: .8; transition: opacity .2s; }
.member-social a:hover { opacity: 1; }

.team {
  display: grid;
  gap: clamp(56px, 7vw, 88px);
  margin-top: clamp(64px, 8vw, 104px);
}
.member {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.member:nth-of-type(even) img { order: -1; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.member h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 0 0 24px;
}
.member p {
  margin: 0;
  font-size: 18px;
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cart { top: 14px; }
  .sky { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 1760 / 520; }
  .nav-row {
    display: flex; flex-wrap: wrap; justify-content: center;
    column-gap: 28px; row-gap: 14px;
    padding: 18px 0;
  }
  .nav-left, .nav-right { display: contents; }
  .nav-row li { font-weight: 700; font-size: 18px; }
  .wordmark { order: -1; flex-basis: 100%; display: flex; justify-content: center; }
  .wordmark img { width: 150px; }

  .prints { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .rule, .contact-rule {              /* linhas de ponta a ponta da tela */
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }
  .member { grid-template-columns: 1fr; gap: 20px; }
  .member img { order: -1; }
  .member:nth-of-type(even) img { order: -1; }
  .member p, .story p { font-size: 16px; line-height: 1.7; text-align: left; }
  .footer-links { justify-self: start; text-align: left; }
  .social { justify-content: flex-start; }
  .footer-nav { justify-content: flex-start; }
}
