/*
Theme Name: rach in philly
Theme URI: https://imrachmall.com
Description: Design system for imrachmall.com. Built from her own TikTok: every caption
  she posts is centered, lowercase, white, and set in a serif, laid over old Philadelphia
  interiors — Anastacia's crimson velvet and brass, Shane's teal woodwork and gilt. This
  theme scales that caption up to architecture. Palette sampled from those rooms.
Author: Maxwell
Template: hello-elementor
Version: 1.0
*/

/* ==========================================================================
   Tokens — every value here was sampled from her own footage, not picked.
   ========================================================================== */
:root {
  --irm-ink:       #17100F; /* mahogany shadow: black with a red cast, never neutral */
  --irm-oxblood:   #5C0F1E; /* the velvet drapery behind the curiosity cabinet */
  --irm-lamp:      #E0475E; /* the rose glass lamp burning in the middle of it */
  --irm-brass:     #C69749; /* gilt cornice, brass fittings, the chandelier */
  --irm-bone:      #F0E7D8; /* aged ivory — skulls, plaster, Shane's painted cornice */
  --irm-verdigris: #2F5D5F; /* Shane's blue-green woodwork, the one cool note */

  --irm-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --irm-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --irm-measure: 34rem;
  --irm-gutter: clamp(1.25rem, 5vw, 3rem);
  --irm-bay: clamp(3.5rem, 11vw, 7rem); /* vertical rhythm between sections */
}

/* ==========================================================================
   Base — mobile is the design target. Almost everyone arrives from a bio link.
   ========================================================================== */
body {
  margin: 0;
  background: var(--irm-ink);
  color: var(--irm-bone);
  font-family: var(--irm-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--irm-bone); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--irm-brass); }

:focus-visible {
  outline: 2px solid var(--irm-brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hello Elementor's wrapper fights full-bleed sections; let ours run edge to edge.
   The margin trick escapes any max-width parent without knowing its name, which
   matters because the parent theme is free to rename its containers. */
.site-main, .page-content { margin: 0; padding: 0; max-width: none; }
body { overflow-x: hidden; } /* required: 100vw ignores the scrollbar */
.irm-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }

/* ==========================================================================
   Parent-theme chrome. Hello Elementor stacks a bold sans wordmark, a tagline,
   and the page title on top of every page — three redundant lines before the
   design starts. Quiet all of it down to one wordmark.
   ========================================================================== */
.site-header {
  background: var(--irm-ink);
  padding: 1.1rem var(--irm-gutter);
  border-bottom: 1px solid color-mix(in srgb, var(--irm-brass) 20%, transparent);
}

.site-header .site-title,
.site-header .site-title a {
  font-family: var(--irm-display);
  font-weight: 400;
  font-size: 1.4rem;
  text-transform: lowercase;
  letter-spacing: -.01em;
  color: var(--irm-bone);
  text-decoration: none;
}

/* The tagline repeats in the footer and adds nothing beside the wordmark. */
.site-header .site-description { display: none; }

/* Every page already opens with its own headline in the content. */
.page-header,
.entry-title,
h1.entry-title { display: none; }

.site-navigation a { font-size: .95rem; text-decoration: none; }
.site-navigation-toggle,
button.site-navigation-toggle { background: transparent; color: var(--irm-bone); }

.site-footer {
  background: var(--irm-ink);
  border-top: 1px solid color-mix(in srgb, var(--irm-brass) 20%, transparent);
  padding: 2.5rem var(--irm-gutter);
  text-align: center;
  font-size: .82rem;
  text-transform: lowercase;
  color: color-mix(in srgb, var(--irm-bone) 50%, transparent);
}

/* ==========================================================================
   Type — the serif is rationed. It is the brand, so it never does body work.
   ========================================================================== */
.irm-display,
h1.entry-title,
.irm-hero__line,
.irm-section__title {
  font-family: var(--irm-display);
  font-weight: 400;
  text-transform: lowercase; /* she has never once capitalised a caption */
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

/* The eyebrow is the opposite register: tight, uppercase, tracked wide, brass.
   It exists to label, never to decorate — every one names a real category. */
.irm-eyebrow {
  font-family: var(--irm-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--irm-brass);
  margin: 0 0 .9rem;
}

.irm-lede {
  max-width: var(--irm-measure);
  font-size: clamp(1.02rem, 3.4vw, 1.15rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--irm-bone) 82%, transparent);
}

/* A brass hairline. The only divider in the system. */
.irm-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--irm-brass),
    color-mix(in srgb, var(--irm-brass) 15%, transparent)
  );
  margin: 0;
}

/* ==========================================================================
   Hero — the signature. Her caption, at architectural scale, lit by the lamp
   from the antique shop. No stock photo stands in for a photo she hasn't given us.
   ========================================================================== */
.irm-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74vh;
  min-height: 74dvh;
  padding: var(--irm-bay) var(--irm-gutter);
  text-align: center;
  overflow: hidden;
  background: var(--irm-ink);
}

/* The lamp bloom. This is the one loud move in the whole design. */
.irm-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(48% 40% at 50% 44%, color-mix(in srgb, var(--irm-lamp) 40%, transparent) 0%, transparent 68%),
    radial-gradient(66% 54% at 50% 56%, color-mix(in srgb, var(--irm-oxblood) 80%, transparent) 0%, transparent 74%);
  pointer-events: none;
}

.irm-hero > * { position: relative; }

.irm-hero__line {
  font-size: clamp(2.6rem, 13vw, 6.5rem);
  max-width: 16ch;
  margin-inline: auto;
  text-wrap: balance;
}

.irm-hero__sub {
  margin: 1.4rem auto 0;
  max-width: 32ch;
  font-size: clamp(.98rem, 3.6vw, 1.1rem);
  color: color-mix(in srgb, var(--irm-bone) 78%, transparent);
  text-wrap: pretty;
}
/* Three cramped lines at 32ch is right on a phone and mean on a desktop. */
@media (min-width: 720px) { .irm-hero__sub { max-width: 46ch; } }

.irm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2.2rem;
}

/* ==========================================================================
   Buttons — pill, thumb-sized, brass. Label says what happens, nothing cute.
   ========================================================================== */
/* text-decoration is !important because the parent theme underlines links from a
   descendant selector that outranks a bare class. A pill with an underline in it
   is the single loudest "unfinished" signal on the page. */
.irm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--irm-brass);
  background: var(--irm-brass);
  color: var(--irm-ink);
  font-family: var(--irm-body);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.irm-btn:hover { background: var(--irm-bone); border-color: var(--irm-bone); color: var(--irm-ink); transform: translateY(-1px); }

.irm-btn--ghost { background: transparent; color: var(--irm-bone); border-color: color-mix(in srgb, var(--irm-bone) 38%, transparent); }
.irm-btn--ghost:hover { background: transparent; border-color: var(--irm-brass); color: var(--irm-brass); }

/* ==========================================================================
   Sections
   ========================================================================== */
.irm-section {
  padding: var(--irm-bay) var(--irm-gutter);
  max-width: 68rem;
  margin-inline: auto;
}

.irm-section__title {
  font-size: clamp(1.9rem, 8vw, 3.1rem);
  margin-bottom: .6rem;
}

/* Three things she covers. Not a numbered list — they are not a sequence. */
.irm-trio { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
@media (min-width: 720px) { .irm-trio { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* A brass hairline above each one so they read as three entries rather than one
   run-on column. Same device as the venue cards — one divider in the whole system. */
.irm-trio__item {
  display: grid; gap: .5rem; align-content: start;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--irm-brass) 30%, transparent);
}
.irm-trio__name { font-family: var(--irm-display); font-size: 1.6rem; text-transform: lowercase; margin: 0; }
.irm-trio__body { margin: 0; font-size: .95rem; color: color-mix(in srgb, var(--irm-bone) 74%, transparent); }

/* ==========================================================================
   Motion — one orchestrated entrance, then the page sits still.
   ========================================================================== */
@keyframes irm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.irm-rise { animation: irm-rise .85s cubic-bezier(.2, .7, .3, 1) both; }
.irm-rise--2 { animation-delay: .14s; }
.irm-rise--3 { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
