/* El Acorazado: station ticket window. Rules in mockups/.../el-acorazado/DESIGN.md */
:root {
  --bg: #F0D9BE;
  --surface: #F7EBDA;
  --text: #2E2718;
  --muted: #5E4C33;
  --line: #B79A76;
  --accent: #AB2F23;
  --accent-strong: #8E2419;
  --accent-text: #F7EBDA;
  --coral: #CE644E;
  --kraft: #D0A97A;
  --anil: #2B3A55;
  --focus: #2B3A55;
  --error: #8E2419;
  --open: #3B7A3F;
  --closing: #B7791F;
  --closed: #8A7A66;
  --font-display: "Old Standard TT", "Times New Roman", serif;
  --font-body: "Old Standard TT", "Times New Roman", serif;
  --font-mono: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body { font-size: 1.125rem; line-height: 1.6; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.005em; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
p { max-width: 62ch; }
.muted { color: var(--muted); }
.label {
  font-family: var(--font-mono); font-weight: 800; font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: .5rem;
}
.tag { border-radius: var(--radius); font-size: .78rem; font-weight: 700; color: var(--accent-strong); }

/* Buttons: cut card stock, square corners */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.3rem;
  font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid currentColor; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-grana { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-grana:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ink { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn-ink:hover { background: var(--accent); border-color: var(--accent); }
.btn-cream { background: var(--surface); color: var(--text); border-color: var(--surface); }
.btn-cream:hover { background: var(--bg); border-color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--text); color: var(--surface); border-bottom: 3px solid var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; text-decoration: none; color: var(--surface); padding-block: .5rem; }
.wordmark b { font-weight: 700; }
.site-header ul { display: flex; gap: clamp(.9rem, 2.6vw, 2rem); padding: 0; list-style: none; }
.site-header a:not(.wordmark) {
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
}
.site-header a:not(.wordmark):hover { color: var(--kraft); }

/* Hero: the lockup is the sign */
.hero { background: var(--kraft); }
.hero-art { width: 100%; height: auto; max-height: 78vh; object-fit: cover; object-position: 50% 40%; }
.stub-bar { background: var(--text); color: var(--surface); border-top: 2px dashed rgba(247,235,218,.5); }
.stub-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; flex-wrap: wrap; padding-block: 1rem; }
.stub-bar .hours-badge, .hours-badge.on-dark { --closed: #CDBBA0; }
.hours-badge { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.stub-item { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.stub-bar .btn-ink { background: var(--surface); color: var(--text); border-color: var(--surface); }
.stub-bar .btn-ink:hover { background: var(--kraft); border-color: var(--kraft); }

/* The ticket + the conductor's punch */
.boleto-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.boleto-copy > * + * { margin-top: 1rem; }
.boleto-copy .btn { margin-top: 1.6rem; }
.ticket-fig { position: relative; margin-inline: clamp(-1rem, -2vw, 0rem); }
.ticket-fig img { width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(46,39,24,.22)); }
.punch {
  /* Sits on the stub, above Nº 1911. Cream like the page, with a soft inner shade so it reads as a hole. */
  position: absolute; left: 4.9%; top: 12%; width: 3.3%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 2px 3px rgba(46,39,24,.45);
  transform: scale(0); opacity: 0;
  transition: transform .28s var(--ease), opacity .12s linear;
}
.ticket-fig.is-punched .punch { transform: scale(1); opacity: 1; }
/* WebGL ticket (ticket3d.js): sits over the flat image, which keeps the layout and stays as the fallback */
.ticket-gl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 6px 8px rgba(46,39,24,.22)); }
.ticket-fig.gl-on img { visibility: hidden; }
.ticket-fig.gl-on .punch { display: none; }

/* Photo band: the window and the comal */
.photo-band { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; background: #1E1A17; }
.photo-band figure { margin: 0; }
.photo-band img { width: 100%; height: clamp(260px, 30vw, 460px); object-fit: cover; }

/* House dishes on the fare board */
.house-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1rem); margin-top: 1.6rem; }
.house-photos figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.house-photos .hp-main { grid-row: 1 / 3; }
.house-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.house-photos .hp-main img { aspect-ratio: auto; }
.house-photos figcaption {
  position: absolute; left: .6rem; bottom: .6rem; padding: .25rem .6rem; border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-family: var(--font-mono); font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
}

/* Fare board */
.tarifas { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--text); }
.board {
  background: var(--surface) url("img/paper-1920.webp") center / cover; background-blend-mode: multiply; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem);
  border-radius: var(--radius); position: relative;
  /* Ticket notches at the four corners */
  -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top left / 51% 51% no-repeat,
                radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top right / 51% 51% no-repeat,
                radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom left / 51% 51% no-repeat,
                radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom right / 51% 51% no-repeat;
          mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top left / 51% 51% no-repeat,
                radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top right / 51% 51% no-repeat,
                radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom left / 51% 51% no-repeat,
                radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom right / 51% 51% no-repeat;
}
.board-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .25rem 2rem; padding-bottom: 1.2rem; border-bottom: 3px double var(--text); }
.board-head .label { grid-column: 1 / -1; margin: 0; }
.board-note { color: var(--muted); font-style: italic; text-align: right; }
.board-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.menu-section { padding-top: 1.6rem; }
.menu-section:first-child { grid-column: 1 / -1; }
.menu-section-title { font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); padding-bottom: .3rem; }
.menu-list { padding: 0; list-style: none; }
.menu-section:first-child .menu-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.menu-item { border-bottom: 2px dashed var(--line); }
.menu-item .name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; overflow-wrap: anywhere; }
.menu-item .price { font-family: var(--font-mono); font-weight: 800; font-size: 1.4rem; color: var(--accent); line-height: 1.1; }
.menu-item .desc { font-size: 1rem; color: var(--muted); }
.menu-item.is-out .name, .menu-item.is-out .price { color: var(--muted); }
.fare-foot { color: var(--surface); font-style: italic; margin-top: 1.2rem; }

/* Hueyapan band */
.band { height: clamp(40px, 5vw, 56px); background: #1E1A17 url("img/woven-band-96.webp") left center / auto 100% repeat-x; }
.band-thin { height: clamp(22px, 2.6vw, 30px); background-image: url("img/woven-band-48.webp"); }

/* Paper: the multiply layer from the ticket stock, laid over each cream section */
.paper { background-color: var(--bg); background-image: url("img/paper-1920.webp"); background-size: cover; background-position: center; background-blend-mode: multiply; }
.paper-light { background-color: var(--surface); }
@media (max-width: 979px) { .paper { background-image: url("img/paper-960.webp"); } }

/* Taquilla */
.taquilla { background: #262220; color: var(--surface); }
.taquilla .muted { color: #CDBBA0; }
.taquilla-sign {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); color: var(--text); padding: .7rem clamp(1rem, 3vw, 2rem); border-radius: var(--radius);
  border-bottom: 0; margin-bottom: clamp(2rem, 5vw, 3.5rem); background: var(--surface) url("img/paper-960.webp") center / cover; background-blend-mode: multiply; position: relative;
}
.taquilla-sign span { font-family: var(--font-mono); font-weight: 800; font-size: clamp(.85rem, 1.8vw, 1.1rem); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.taquilla-sign::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 22px; background: #1E1A17 url("img/woven-band-48.webp") left center / auto 100% repeat-x; }
.taquilla-sign strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 3.6rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.taquilla-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.taquilla .stack { --stack: 1.1rem; }
.hours-card { background: var(--surface) url("img/paper-960.webp") center / cover; background-blend-mode: multiply; color: var(--text); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }
.hours-card h3 { font-family: var(--font-mono); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: .4rem; }
.hours-table td { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.hours-table tr[aria-current="date"] th, .hours-table tr[aria-current="date"] td { color: var(--accent-strong); }
.hours-note { font-size: .95rem; color: var(--muted); margin-top: .9rem; }

/* La estación */
.estacion-head { max-width: 46rem; }
.estacion-head > * + * { margin-top: 1rem; }
.timeline { list-style: none; padding: 0; margin-top: clamp(2rem, 5vw, 3rem); border-left: 3px solid var(--text); }
.stop { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: 0 0 1.8rem 1.6rem; position: relative; }
.stop::before { content: ""; position: absolute; left: -9px; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--text); }
.stop-year { font-family: var(--font-mono); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.fact-tag {
  display: inline-block; font-family: var(--font-mono); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .12rem .5rem; border: 2px solid var(--text); border-radius: var(--radius); margin-bottom: .45rem;
}
.tag-told { border-style: dashed; }
.tag-family { background: var(--text); color: var(--surface); }
.sources { font-size: .95rem; color: var(--muted); }
.sources a { color: var(--text); }

/* Return ticket */
/* Return ticket over the coral station photo (Lionel's treatment). Text never sits on the photo: it lives on a paper panel. */
.regreso { position: relative; background: #C2614B url("img/station-1920.webp") center 60% / cover no-repeat; padding-block: clamp(4rem, 9vw, 7rem); min-height: min(52vw, 760px); display: grid; align-items: center; }
.regreso-inner { position: relative; }
.regreso-panel { max-width: 25rem; margin-left: 0; background: var(--surface) url("img/paper-960.webp") center / cover; background-blend-mode: multiply; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(46,39,24,.3); }
.regreso-panel > * + * { margin-top: 1rem; }
.regreso-panel .punch-card { margin-top: 1.6rem; }
.regreso-panel h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.regreso-panel .pc-head span + span { display: none; }
.photo-note { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: .9rem; max-width: 22rem; font-size: .85rem; font-style: italic; color: var(--surface); background: rgba(46,39,24,.78); padding: .3rem .6rem; border-radius: var(--radius); }
.punch-card {
  display: grid; grid-template-columns: 3rem 1fr; background: #E3C989 url("img/paper-960.webp") center / cover; background-blend-mode: multiply; color: var(--text); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(46,39,24,.25); max-width: 34rem;
}
.pc-stub { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: .25em; border-left: 2px dashed var(--text); padding: 1rem 0; }
.pc-body { padding: 1.2rem 1.4rem 1rem; }
.pc-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; max-width: none; }
.pc-holes { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.5rem, 2vw, .9rem); margin: 1rem 0; }
.pc-holes span { aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed var(--text); }
.pc-holes .is-punched { border: 0; background: var(--surface); box-shadow: inset 0 2px 3px rgba(46,39,24,.4); }
.pc-foot { font-size: 1rem; }
.regreso .stack { --stack: 1rem; }

/* Catering */
.carro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.carro .stack { --stack: 1rem; }
.inquiry { display: grid; gap: 1rem; background: var(--surface) url("img/paper-960.webp") center / cover; background-blend-mode: multiply; padding: clamp(1.25rem, 3vw, 2rem); padding-top: calc(clamp(1.25rem, 3vw, 2rem) + 22px); border-radius: var(--radius); position: relative; overflow: hidden; }
.inquiry::before { content: ""; position: absolute; inset: 0 0 auto; height: 22px; background: #1E1A17 url("img/woven-band-48.webp") left center / auto 100% repeat-x; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { background: #FFFAF2; border-color: var(--line); min-height: 48px; }
.inquiry .btn { justify-self: start; }
.form-status { background: var(--bg); }

/* Footer */
.site-footer { background: var(--text); color: var(--surface); }
.footer-inner { padding-block: 2.5rem 3rem; display: grid; gap: .6rem; }
.footer-inner p { max-width: none; }
.footer-mark { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.site-footer .concept { font-size: .9rem; color: #CDBBA0; }

/* Headline press: labels, headlines and their first line settle in once, like type pressed into paper.
   Only applies when JS added .press-ready and motion is allowed; otherwise text is simply there. */
.press-ready [data-press] {
  opacity: 0; transform: translateY(6px); filter: blur(1.5px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .6s var(--ease), letter-spacing .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.press-ready [data-press].is-pressed { opacity: 1; transform: none; filter: none; }
/* One-line labels also settle their tracking, like a stamp tightening up. Multi-line headlines don't, so they never re-wrap mid-move. */
.press-ready .label[data-press] { letter-spacing: .16em; }
.press-ready .label[data-press].is-pressed { letter-spacing: .12em; }
.press-ready .taquilla-sign strong[data-press] { letter-spacing: .2em; }
.press-ready .taquilla-sign strong[data-press].is-pressed { letter-spacing: .14em; }

/* Timeline waterfall: the rail draws down like track being laid, and each stop drops in as the line reaches it. Once. */
.timeline { position: relative; }
.press-ready .timeline { border-left-color: transparent; }
.press-ready .timeline::before {
  content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: var(--text);
  transform: scaleY(0); transform-origin: top; transition: transform 3.2s linear;
}
.press-ready .timeline.is-laid::before { transform: scaleY(1); }
.press-ready .timeline .stop { opacity: 0; transform: translateY(-10px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.press-ready .timeline.is-laid .stop { opacity: 1; transform: none; }

/* Phone */
@media (max-width: 979px) {
  .boleto-grid, .taquilla-grid, .carro-grid { grid-template-columns: 1fr; }
  .regreso { background: var(--text); min-height: 0; padding-block: 0 3rem; }
  .regreso::before { content: ""; display: block; aspect-ratio: 1920 / 900; background: url("img/station-960.webp") center / cover; margin-bottom: -3rem; }
  .regreso-panel { margin-inline: auto; }
  .photo-note { position: static; margin: 1rem auto 0; width: min(31rem, 100% - 2rem); background: none; padding: 0; color: #CDBBA0; }
  .board-body { grid-template-columns: 1fr; }
  .menu-section:first-child .menu-list { grid-template-columns: 1fr; }
  .house-photos { grid-template-columns: 1fr; grid-template-rows: none; }
  .house-photos .hp-main { grid-row: auto; }
  .house-photos .hp-main img { aspect-ratio: 5 / 4; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band .pb-narrow { display: none; }
}
@media (max-width: 640px) {
  .site-header nav { width: 100%; overflow-x: auto; }
  .site-header ul { gap: 1.1rem; }
  .hero-art { max-height: none; }
  .board-head { grid-template-columns: 1fr; }
  .board-note { text-align: left; }
  .stop { grid-template-columns: 1fr; gap: .2rem; }
  .field-row { grid-template-columns: 1fr; }
  .taquilla-sign span { display: none; }
  .taquilla-sign { justify-content: center; }
  .pc-head span + span { display: none; }
}
