/* Rally Point Group */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1C2B3F;
  --brass: #B08D57;
  --brass-light: #C9A66B;
  --cream: #F4EDE4;
  --cream-warm: #F6F1EA;

  color-scheme: only light;

  /* Navy and brass at partial strength, for lines only. */
  --hairline: rgba(28, 43, 63, 0.16);
  --field-line: rgba(28, 43, 63, 0.58);
  --rule-on-navy: rgba(176, 141, 87, 0.6);

  --font-display: "Cinzel", Georgia, serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-label: "Montserrat", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);

  /* Type sizes. Service names shrink only on phones narrower than about
     355 px, where COMMUNICATIONS would not fit at 28 px. */
  --body-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --service-size: clamp(1.5rem, calc((100vw - 2rem) / 11.5), 1.875rem);
  --name-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  --row-pad: clamp(1.75rem, 3.5vw, 2.5rem);
}

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

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--navy);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.services :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brass-light);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 10;
  padding: 0.875rem 1.25rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section layout: a narrow label column and a wide content column. */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.75rem;
}

@media (min-width: 60rem) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .grid > .label {
    grid-column: 1 / span 3;
    align-self: start;
  }

  .grid > :not(.label) {
    grid-column: 4 / span 9;
  }

  /* Each label sits level with the first line beside it. */
  .services .label {
    height: calc(var(--row-pad) + var(--service-size) * 1.15);
    padding-top: var(--row-pad);
  }

  .about .label {
    height: calc(var(--name-size) * 1.1);
  }

  .contact .label {
    height: calc(var(--body-size) * 1.5);
  }
}

/* Labels carry the short brass rule from the logo's GROUP line. */

.label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.label::before {
  content: "";
  flex: 0 0 auto;
  width: 2rem;
  height: 1px;
  background: var(--brass);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.site-header__logo {
  display: block;
  flex: 0 0 auto;
}

/* The file carries clear space, so 216 px of file is 200 px of logo art,
   the kit's floor for the horizontal lockup on screen. */
.site-header__logo img {
  width: clamp(216px, 18vw + 120px, 264px);
}

.site-nav {
  margin-left: auto;
}

.site-nav a {
  display: inline-block;
  margin-right: -0.18em;
  padding-block: 0.875rem;
  color: var(--navy);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.6em;
}

.site-nav a:hover {
  text-decoration-color: var(--navy);
}

/* Opening */

.intro {
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
}

.nowrap {
  white-space: nowrap;
}

.intro__lead {
  max-width: 23em;
  margin: 0;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.375rem);
  line-height: 1.3;
  text-wrap: pretty;
}

/* Services */

.services {
  padding-block: var(--section);
  background: var(--navy);
  color: var(--cream);
}

.services .label {
  color: var(--brass-light);
}

.services__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule-on-navy);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0.875rem;
  padding-block: var(--row-pad);
  border-top: 1px solid var(--rule-on-navy);
}

.service__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--service-size);
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service__name {
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}

.service__text {
  max-width: 34em;
  margin: 0;
}


/* About */

.about {
  padding-block: var(--section);
}

.about__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--name-size);
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about__role {
  margin: 0.875rem 0 2rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about__body p:not(.about__role) {
  max-width: 36em;
  margin: 0 0 1.1em;
}

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

/* Blanks only Drew can fill. Must be gone before launch. */
.tk {
  padding: 0 0.2em;
  background: rgba(176, 141, 87, 0.22);
  color: var(--navy);
  outline: 1px dashed var(--brass);
}

/* Contact */

.contact {
  padding-block: var(--section);
  background: var(--cream-warm);
  border-top: 1px solid var(--hairline);
}

.contact__intro {
  max-width: 40em;
  margin: 0 0 2.25rem;
}

.form {
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
}

.form__pair {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .form__pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.875rem;
  background: var(--cream);
  color: var(--navy);
  font: inherit;
  border: 1px solid var(--field-line);
  border-radius: 0;
  appearance: none;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--navy);
  outline-offset: 2px;
}

.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.button {
  margin: 0;
  padding: 1.05rem 1.9rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.button:hover {
  box-shadow: inset 0 -2px 0 var(--brass-light);
}

.button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.form__status {
  margin: 0;
  font-size: 1rem;
}

/* Cloudflare Turnstile draws into this box. It takes no room, so nothing
   moves when the check loads, until the check wants a click (site.js then
   marks it data-shown). */
.form__check:not([data-shown]) {
  position: absolute;
}

.form__note {
  max-width: 40em;
  margin: 0;
  font-size: 0.9375rem;
}

.form__note a,
.policy a {
  color: var(--navy);
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}

.form__note a:hover,
.policy a:hover {
  text-decoration-color: var(--navy);
}

/* Footer */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.75rem, 5vw, 3.75rem);
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.site-footer__logo {
  width: 200px;
  margin-bottom: 1.75rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__place {
  color: var(--brass-light);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__legal {
  font-size: 0.9375rem;
}

/* Links on navy are Brass light, underlined (brand guide, page 13). The left
   padding matches the tracking after the last letter, so the word sits
   centred. */
.site-footer__links a {
  display: inline-block;
  padding-block: 0.875rem;
  padding-left: 0.18em;
  color: var(--brass-light);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--brass-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.6em;
}

.site-footer__links a:hover {
  text-decoration-color: var(--cream);
}

/* Privacy notice */

.policy {
  padding-block: var(--section);
}

/* On phones the label would sit right above PRIVACY NOTICE and repeat it. */
.policy .label {
  display: none;
}

@media (min-width: 60rem) {
  .policy .label {
    display: flex;
    height: calc(var(--name-size) * 1.1);
  }
}

.policy__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--name-size);
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy__date {
  margin: 0.875rem 0 2rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.policy__body h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.policy__body p:not(.policy__date) {
  max-width: 36em;
  margin: 0 0 1.1em;
}

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

/* The page the contact form's receiver shows when JavaScript is off. */

.notice {
  padding-block: var(--section);
}

.notice__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--name-size);
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-wrap: balance;
}

.notice__text {
  max-width: 36em;
  margin: 0 0 1.5rem;
}

.notice__back {
  margin: 0;
}

.notice__back a {
  color: var(--navy);
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}
