/* Pages where the call is prepared: paper, navy ink and postage stamps (direction A). */
@font-face { font-family: "Young Serif"; src: url("../fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f3ecdf;
  --card: #fffaf0;
  --card-line: #e3d8c4;
  --ink: #1d2b4c;
  --text: #3e3a33;
  --lead: #5b5448;
  --muted: #6b6457;
  --rule: #cdbfa5;
  --dash: #b8a98d;
  --gold: #b8862b;
  --danger: #a3271d;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
img { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
input, select, button { font: inherit; }

.top, .page, .foot { max-width: 840px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-top: 20px; }
.brand { font-family: var(--serif); font-size: 1.05rem; text-decoration: none; }
.switch { display: flex; gap: 10px; font-size: .78rem; }
.switch a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.switch a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero: headline and the character's stamp. On phones the stamp sits beside
   the headline so «Llamar» shows without scrolling. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding-top: 22px; }
.hero h1 { margin: 0; font-size: 2.15rem; line-height: 1.05; letter-spacing: -.01em; }
.hero-art { position: relative; width: 100px; height: 124px; }
.lead { grid-column: 1 / -1; margin: 14px 0 0; color: var(--lead); max-width: 34em; }

.stamp { --frame: var(--gold); display: inline-block; flex: none; padding: 7px; background: radial-gradient(circle at 6px 6px, var(--paper) 3.4px, var(--frame) 4px) -6px -6px / 12px 12px; }
.stamp-face { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; background: #fbf6ec; outline: 2px solid var(--frame); }
.stamp-face img { width: 72%; height: auto; }
.stamp[data-character="police"] { --frame: #2d5da8; }
.stamp[data-character="santa"] { --frame: #b8322a; }
.stamp-lg { position: absolute; right: 2px; top: 4px; width: 94px; height: 114px; padding: 6px; transform: rotate(4deg); background-size: 10px 10px; background-position: -5px -5px; background-image: radial-gradient(circle at 5px 5px, var(--paper) 2.8px, var(--frame) 3.3px); }
.stamp-md { width: 104px; height: 126px; }
.stamp-sm { width: 62px; height: 75px; padding: 5px; background-size: 10px 10px; background-position: -5px -5px; background-image: radial-gradient(circle at 5px 5px, var(--paper) 2.8px, var(--frame) 3.3px); }
.postmark { position: absolute; left: -26px; bottom: -6px; width: 66px; height: 66px; border: 1.5px solid rgba(29, 43, 76, .55); border-radius: 50%; transform: rotate(-14deg); display: flex; align-items: center; justify-content: center; text-align: center; font-size: .55rem; line-height: 1.15; color: rgba(29, 43, 76, .8); }
.home .hero { grid-template-columns: minmax(0, 1fr); }
.home .hero-art { order: -1; width: auto; height: 150px; }
.fan { display: flex; justify-content: center; align-items: center; }
.fan .stamp:nth-child(1) { transform: rotate(-7deg) translateX(14px); }
.fan .stamp:nth-child(2) { transform: translateY(-10px); z-index: 1; }
.fan .stamp:nth-child(3) { transform: rotate(6deg) translateX(-14px); }

/* The call order: the call button first, then the settings. */
.order { position: relative; margin: 28px -4px 0; background: var(--card); border: 1px solid var(--card-line); padding: 18px 18px 22px; }
.order::before { content: ""; position: absolute; left: -1px; right: -1px; top: -7px; height: 7px; background: radial-gradient(circle at 7px 7px, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 14px repeat-x; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.order h2 { margin: 0; font-size: 1.3rem; }
.order-from { margin: 0; font-size: .85rem; color: var(--muted); }
.order-summary { margin: 14px 0 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.call-button { margin-top: 12px; width: 100%; min-height: 60px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.call-button:hover { background: #142039; }
.call-button:disabled { opacity: .65; cursor: progress; }
.form-error { color: var(--danger); margin: 10px 0 0; }
.turnstile:empty { display: none; }
.turnstile { margin-top: 12px; }

.config { margin-top: 22px; padding-top: 4px; border-top: 1.5px dashed var(--dash); --label: 6.5rem; }
.config h3 { margin: 14px 0 2px; font-size: 1.05rem; }
/* Three rows alike: label on the left, value on the right, ruled like a form. */
.field { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--rule); padding: 14px 0 8px; }
.field label, .field-label { font-size: .85rem; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 34px; border: 0; padding: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.field input::placeholder { color: #a39a88; }
.field input:focus-visible, .field select:focus-visible { outline: none; }
.field:focus-within { border-bottom-color: var(--ink); }
.field select { appearance: none; padding-right: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d2b4c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px; cursor: pointer; }
.hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
/* On phones the four times need the whole width: label above the buttons. */
.field-choice { grid-template-columns: minmax(0, 1fr); gap: 8px; border-bottom: 0; padding-top: 18px; }
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; border: 1.5px solid var(--rule); border-radius: 4px; font-size: .9rem; text-align: center; }
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.notice { margin: 12px 4px 0; font-size: .8rem; font-style: italic; color: var(--muted); text-align: center; }

/* Reading sections. */
section.how, .two, section.choose { margin-top: 40px; }
.page h2 { margin: 0 0 14px; font-size: 1.6rem; line-height: 1.15; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.step-number { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--gold); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--text); }
details { border-bottom: 1px solid #d8cdb8; padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--lead); }

.character-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.character-list a { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 14px 8px 12px; background: #fbf6ec; border: 1px solid var(--card-line); text-decoration: none; font-family: var(--serif); text-align: center; }
.character-list a:hover { border-color: var(--ink); color: var(--ink); }
.character-list.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }

section.others { margin-top: 40px; }
.others .character-list { max-width: 480px; }

/* Our own sites: in the side slots on wide screens, at the end of the page otherwise.
   Neutral class names: ad blockers hide anything called promo, banner, rail-ad... */
.web-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #fbf6ec; border: 1.5px dashed var(--dash); text-decoration: none; }
.web-card:hover { border-color: var(--ink); color: var(--ink); }
.web-card-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; }
.web-card-text { color: var(--text); font-size: .9rem; line-height: 1.45; }
.web-card-go { font-weight: 700; font-size: .95rem; }
.more-webs { margin-top: 44px; }
.page .more-webs h2 { font-size: 1.3rem; }
.web-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Home: one tab per country. */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.prose h1 { font-size: 2.2rem; margin: 28px 0 12px; line-height: 1.1; }
.prose h2 { font-size: 1.3rem; margin-top: 28px; }
.prose .notice { text-align: left; margin: 0; }

.foot { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; padding-top: 22px; padding-bottom: 40px; border-top: 1px solid #d8cdb8; font-size: .85rem; color: var(--muted); }
.foot a { color: var(--muted); }

@media (min-width: 760px) {
  .top { padding-top: 28px; }
  .brand { font-size: 1.35rem; }
  .switch { gap: 18px; font-size: .95rem; }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 24px; padding-top: 48px; }
  .hero h1 { align-self: end; font-size: 3.4rem; }
  .hero-art { grid-column: 2; grid-row: 1 / 3; width: auto; height: 240px; }
  .lead { grid-column: 1; align-self: start; }
  .home .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .home .hero-art { order: 0; }
  .stamp-lg { width: 168px; height: 204px; right: 18px; top: 4px; padding: 9px; background-size: 14px 14px; background-position: -7px -7px; background-image: radial-gradient(circle at 7px 7px, var(--paper) 4px, var(--frame) 4.6px); }
  .postmark { left: 0; bottom: auto; top: 112px; width: 104px; height: 104px; font-size: .8rem; }
  .order { margin: 40px 0 0; padding: 28px 32px 30px; }
  .order h2 { font-size: 1.55rem; }
  .call-button { width: auto; min-width: 280px; padding: 0 44px; display: inline-flex; }
  .config { --label: 8rem; }
  .hint { margin-left: calc(var(--label) + 12px); }
  .field-choice { grid-template-columns: var(--label) minmax(0, 1fr); gap: 12px; align-items: center; }
  .segmented { max-width: 28rem; }
  .notice { text-align: left; margin-left: 0; }
  section.how, .two, section.choose { margin-top: 60px; }
  .page h2 { font-size: 1.9rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .steps li { display: flex; flex-direction: column; gap: 6px; }
  .step-number { font-size: 2.5rem; }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .character-list a { flex-direction: row; text-align: left; padding: 10px 16px 10px 10px; }
  .web-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .character-list.wide a { flex-direction: column; text-align: center; padding: 18px 10px 14px; }
  .character-list.wide .stamp-sm { width: 92px; height: 112px; }
  .foot { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

/* Side slots (PLAN.md, rule 1): one on each side of the content on wide screens,
   never inside it. Our own sites until AdSense approves the domain. */
.side { display: none; }
@media (min-width: 1200px) {
  .with-sides { display: grid; grid-template-columns: 1fr minmax(0, 840px) 1fr; }
  .side { display: block; padding-top: 132px; }
  .side-left { justify-self: end; padding-right: 28px; }
  .side-right { justify-self: start; padding-left: 28px; }
  .side-unit, .side-box { position: sticky; top: 28px; width: 160px; }
  .side-unit { height: 600px; }
  .side-box { display: grid; gap: 14px; }
  .more-webs { display: none; }
}
@media (min-width: 1480px) { .side-unit, .side-box { width: 300px; } }
