/* Roman Empire Group. The page is built like the mark: a charcoal lintel, three pillars in the companies'
   colours (Rentals red, Downstage blue, Studio yellow), a charcoal base. Charcoal runs across; the colours
   only stand up, and only together. */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Marcellus.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/Inter-var.woff2") format("woff2"); }

:root {
  --bone: #ECE9E3;
  --paper: #F6F4EF;
  --ink: #1C1C20;
  --ink-2: #45433E;
  --mute: #6E6C68;
  --rule: #D6D1C7;
  --red: #E21E1E;
  --red-ink: #B3141A;
  --yel: #FFCE00;
  --blue: #2F6BFF;
  --blue-ink: #1F59EC;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 17px/1.6 var(--sans); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top__brand img { height: 40px; width: auto; }
.top__nav { display: flex; gap: 26px; font-size: 14px; font-weight: 550; letter-spacing: 0.02em; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .top__nav { display: none; } .top__brand img { height: 34px; } }

/* -------------------------------------------------------------------- hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 7vw, 96px) var(--gut) clamp(48px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.hero h1 { font-family: var(--serif); font-size: clamp(46px, 8.2vw, 104px); line-height: 1.02; letter-spacing: 0.01em; }
.hero__lede { margin-top: 26px; max-width: 36em; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mark { width: 100%; max-width: 380px; justify-self: end; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero__mark { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 2px; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; text-decoration: none; background: transparent; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.btn--yellow { background: var(--yel); border-color: var(--yel); color: var(--ink); }
.btn--yellow:hover { background: #F0C000; border-color: #F0C000; color: var(--ink); }
.btn__host { font-weight: 450; font-size: 13px; color: var(--mute); }
.btn:hover .btn__host { color: inherit; }
.btn { white-space: nowrap; }
@media (max-width: 440px) { .btn__host { display: none; } }

/* ------------------------------------------------- the house: lintel, pillars, base */
.house { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lintel, .plinth { background: var(--ink); color: var(--bone); }
.lintel { padding: 22px 28px; position: relative; }
.lintel h2, .plinth > h2 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.14em; text-transform: uppercase; }

/* the pillars sit between the lintel and the base on a hairline joint, as in the mark */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 36px); padding: 6px clamp(0px, 2vw, 24px); }
.pillar { position: relative; background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.pillar__shaft { position: absolute; inset: 0 auto 0 0; width: 10px; z-index: 1; }
.pillar--red .pillar__shaft { background: var(--red); }
.pillar--blue .pillar__shaft { background: var(--blue); }
.pillar--yellow .pillar__shaft { background: var(--yel); }
.pillar__img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #2A2A2E; }
.pillar__img img { width: 100%; height: 100%; object-fit: cover; }
.pillar__body { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) clamp(26px, 3vw, 40px) clamp(32px, 3.6vw, 46px); display: grid; gap: 14px; align-content: start; }
.pillar__num { font-family: var(--serif); font-size: 15px; letter-spacing: 0.2em; color: var(--mute); }
.pillar h3 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 38px); }
.pillar__line { font-weight: 600; font-size: 18px; color: var(--ink); }
.pillar p { color: var(--ink-2); }
.pillar ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.pillar li { padding-left: 18px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--ink); }
.pillar__cta { margin-top: 10px; }

.plinth { padding: clamp(28px, 4vw, 48px) 28px clamp(32px, 4vw, 52px); }
.base { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: b; }
.base li { border-top: 1px solid rgb(236 233 227 / 0.25); padding-top: 18px; }
.base h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.base p { color: rgb(236 233 227 / 0.78); font-size: 16px; }

/* between phone and desktop, each pillar lies on its side: photo left, words right */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; padding: 6px 0; gap: 6px; }
  .pillar { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: none; }
  .pillar__img { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 620px) {
  .pillar { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .pillar__img { aspect-ratio: 4 / 5; min-height: 0; }
}
@media (max-width: 760px) {
  .base { grid-template-columns: 1fr; gap: 20px; }
  .lintel, .plinth { padding-left: 20px; padding-right: 20px; }
}

/* ------------------------------------------------------------------- story */
.story { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--gut); display: grid; grid-template-columns: 120px 1fr; gap: 36px; align-items: center; }
.story h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.story p { color: var(--ink-2); }
@media (max-width: 560px) { .story { grid-template-columns: 1fr; gap: 20px; } .story img { width: 84px; } }

/* ----------------------------------------------------------------- contact */
.contact { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) clamp(56px, 8vw, 96px); }
.contact > h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 26px; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact__card { background: var(--paper); padding: 24px 24px 26px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--ink); overflow-wrap: anywhere; }
.contact__card--red { border-top-color: var(--red); }
.contact__card--blue { border-top-color: var(--blue); }
.contact__card--yellow { border-top-color: var(--yel); }
.contact__card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.contact__card a { color: var(--ink-2); }
@media (max-width: 560px) { .contact__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--ink); color: rgb(236 233 227 / 0.72); font-size: 13.5px; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gut) 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.foot a { color: var(--bone); }
.foot__links { display: grid; gap: 4px; justify-items: end; text-align: right; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } .foot__links { justify-items: start; text-align: left; } }

/* --------------------------------------------------------------------- 404 */
.nf { max-width: 640px; margin: 0 auto; padding: 80px var(--gut) 120px; display: grid; gap: 22px; justify-items: start; }
.nf h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 60px); }

/* three pillars side by side leave no room for the host name beside the button label */
@media (min-width: 981px) { .pillar .btn__host { display: none; } }
.pillar--blue .pillar__img img { object-position: 85% top; }   /* keep the "Demo content" label in frame when the photo is cropped */
