/* Ten In Pic — self-hosted Fraunces + Source Sans 3 (latin / latin-ext).
   Font files are OFL-licensed. No remote font or analytics requests. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/sourcesans3-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/sourcesans3-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sourcesans3-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sourcesans3-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3eee6;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: rgba(28, 25, 21, 0.16);
  --line-strong: rgba(28, 25, 21, 0.28);
  --accent: #b5442c;
  --accent-hover: #93361f;
  --on-accent: #fffaf6;
  --max: 38rem;
  --wide: 56rem;
  --pad: 1.25rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 10;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: var(--pad);
}

.wrap {
  width: min(var(--wide), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--max), 100%);
}

/* Header */
.site-header {
  padding: 1.35rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark em {
  font-style: italic;
  font-weight: 500;
  padding-inline: 0.08em;
}

.lang {
  display: flex;
  align-items: baseline;
  gap: 0.15rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lang a,
.lang span {
  color: #3f3a34;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}

.lang a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.lang [aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  cursor: default;
}

/* Hero */
.hero {
  padding: 3.25rem 0 2.75rem;
}

@media (min-width: 720px) {
  .hero {
    padding: 4.75rem 0 3.5rem;
  }
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.35rem, 6.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.lead {
  margin: 0 0 1.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.intro {
  margin: 0;
  max-width: 36rem;
  color: var(--ink);
}

/* Ten frames — storyboard: 10 thumbnails, always fit the screen width */
.strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  max-width: 26rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .strip {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.35rem;
    max-width: 760px;
    margin-top: 3rem;
  }
}

.strip li {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e4d3b8;
  box-shadow: 0 0 0 1px var(--line);
  user-select: none;
}

.strip img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.strip span {
  position: absolute;
  left: 6%;
  bottom: 6%;
  min-width: 1.6em;
  padding: 0.2em 0.3em;
  border-radius: 0.35em;
  background: rgba(255, 250, 246, 0.88);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(0.6rem, 1.1vw + 0.3rem, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  box-sizing: border-box;
}

/* Stories by country */
.stories-intro {
  max-width: 38rem;
  color: var(--muted);
}

.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  min-width: 0;
}

.country {
  min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.55);
}

.country-ready {
  grid-column: 1 / -1;
}

.country h3 {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.country h4 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.country h3 + h4 {
  margin-top: 0.5rem;
}

.country .strip,
.country .strip:first-child {
  margin: 0;
}

.section .soon-line {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.country-soon .soon-line {
  margin-top: 0.15rem;
}

.badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.1rem 0.45rem 0.12rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  vertical-align: 0.1em;
}

/* Sections */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .section {
    padding: 3.15rem 0;
  }
}

.section h2 {
  margin: 0 0 1.1rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.note {
  margin: 0 0 1.25rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
}

.schedule {
  margin: 1.35rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.schedule li:last-child {
  border-bottom: 1px solid var(--line);
}

.schedule time {
  color: var(--muted);
  white-space: nowrap;
}

.cta p {
  margin: 0 0 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem 0.72rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn svg {
  display: block;
  flex: 0 0 auto;
}

/* Footer */
.site-footer {
  padding: 1.6rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  max-width: 36rem;
}

@media (max-width: 479px) {
  :root { --pad: 1.1rem; }
  body { font-size: 1.0625rem; }
  .wordmark { font-size: 1.05rem; }
}

/* v5: Subscrever no hero e vídeos leves */
.hero-cta {
  margin: 1.6rem 0 0;
}

.section-intro {
  max-width: 38rem;
  color: var(--muted);
}

.videos {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.videos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.video-card {
  min-width: 0;
}

.video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #e4d3b8;
  box-shadow: 0 0 0 1px var(--line);
}

.video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(28, 25, 21, 0.12);
  cursor: pointer;
}

.video-play:hover svg rect {
  fill: var(--accent-hover);
}

.video-card h3 {
  margin: 0.65rem 0 0.15rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section .video-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-meta .badge {
  margin-left: 0.15rem;
}

.after-videos {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.after-videos p {
  margin-top: 0.9rem;
  color: var(--muted);
}


/* v5: margem lateral também nas secções estreitas em ecrãs pequenos */
.wrap.wrap-narrow {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
}
