/* Schorre & Associates
   Phone first. The header goes to one row, with the red block hanging below it, at 960px. */

@font-face {
  font-family: "Sorts Mill Goudy";
  src: url("/fonts/goudy.woff") format("woff");
  font-display: swap;
}

:root {
  --red: #d6261f;        /* 5:1 on white, so it works for text as well as the logo block */
  --red-dark: #b01d17;
  --ink: #23201d;
  --text: #3a3531;
  --muted: #6e665f;
  --line: #e7e1da;
  --line-strong: #d3cbc3;
  --paper: #f7f4f0;
  --night: #201d1b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Sorts Mill Goudy", "Goudy Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
  --space: 64px;
}

@media (min-width: 600px) { :root { --gutter: 32px; --space: 80px; } }
@media (min-width: 1000px) { :root { --space: 112px; } }


/* Base */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1000px) { body { font-size: 17px; } }

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.12;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding-block: var(--space); }
.section.paper { background: var(--paper); }

.lead {
  max-width: 38em;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (min-width: 1000px) { .lead { font-size: 1.25rem; } }

.title {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
}

.more {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.more:hover { text-decoration: underline; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-dark); color: #fff; }

.button-line { border-color: var(--line-strong); color: var(--ink); }
.button-line:hover { border-color: var(--ink); color: var(--ink); }

.button-white { background: #fff; color: var(--red); }
.button-white:hover { background: var(--paper); color: var(--red-dark); }


/* Header */

.site-header {
  position: relative;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "aicpa aicpa" "sigil actions" "menu menu";
  align-items: center;
}

/* The firm wants its AICPA membership in the header on every page. The line is
   about 29.5 times as wide as its font size, so it's sized to the screen and
   always fits on one line. */
.aicpa {
  grid-area: aicpa;
  margin: 0 calc(-1 * var(--gutter));
  padding: 7px var(--gutter);
  background: var(--paper);
  color: var(--muted);
  font-size: min(12.5px, (100vw - 2 * var(--gutter)) / 29.5);
  line-height: 1.45;
  white-space: nowrap;
}

.sigil {
  grid-area: sigil;
  display: flex;
  background: var(--red);
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Phones and tablets: the logo row is one red band, edge to edge, with
   Client Login in white so it still stands out. */
@media (max-width: 959.98px) {
  .sigil,
  .header-actions {
    align-self: stretch;
    background: var(--red);
  }

  .sigil {
    align-items: center;
    margin-left: calc(-1 * var(--gutter));
    padding: 16px 0 16px var(--gutter);
  }

  .sigil img { width: 112px; }

  .header-actions {
    justify-content: flex-end;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
  }

  .client-login { background: #fff; color: var(--red); }
  .client-login:hover { background: var(--paper); color: var(--red-dark); }
}

.header-phone {
  display: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.header-phone:hover { color: var(--red); }

.client-login { min-height: 44px; padding: 0 18px; font-size: 15px; }

.menu {
  grid-area: menu;
  margin: 0 calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

.menu ul { display: flex; justify-content: space-between; }

/* Uppercase and spaced out, like the original site's menu. The page you're on is in red. */
.menu a {
  display: block;
  padding: 14px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.menu a:hover,
.menu a[aria-current="page"] { color: var(--red); }

@media (min-width: 600px) {
  .menu ul { justify-content: flex-start; gap: 40px; }
  .menu a { font-size: 14px; }
}

@media (min-width: 960px) {
  /* An off-white strip for the AICPA line over the white menu row. */
  .site-header { background: linear-gradient(var(--paper) 0 40px, var(--line) 40px 41px, #fff 41px); }

  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 41px 88px;
    grid-template-areas: "sigil aicpa aicpa" "sigil menu actions";
    column-gap: 56px;
  }

  .aicpa { margin: 0; padding: 0 0 1px; background: none; font-size: 13px; }

  .header-actions { justify-self: end; }

  /* Runs from the top of the page through both rows and hangs below them,
     as in the original design. */
  .sigil {
    align-self: start;
    align-items: flex-end;
    justify-content: center;
    width: 200px;
    height: 157px;
    margin-bottom: -28px;
    padding-bottom: 22px;
  }

  .sigil img { width: 156px; }

  .menu { margin: 0; padding: 0; }
  .menu ul { gap: 40px; }
  .menu a { padding: 34px 0; font-size: 15px; }
}

@media (min-width: 1120px) {
  .header-phone { display: block; }
}


/* Page heads */

.page-head {
  padding-block: 48px 56px;
  background: var(--paper);
}

.page-head h1 { font-size: clamp(2.5rem, 1.75rem + 2.6vw, 3.75rem); }
.page-head .lead { margin-top: 20px; }
.page-head .actions { margin-top: 32px; }

@media (min-width: 960px) {
  .page-head { padding-block: 104px 88px; }
}


/* Home */

/* The team photo runs edge to edge under the header, as on the original site.
   On very wide screens it's trimmed rather than growing taller, mostly from the
   bottom, since everyone's head is near the top of the frame. */
.hero-photo {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: 50% 8%;
}

.hero-text { background: var(--paper); }

.hero-intro {
  display: grid;
  gap: 24px;
  padding-block: 40px 56px;
}

.hero h1 { font-size: clamp(2.375rem, 1.4rem + 3vw, 4rem); }
.hero .actions { margin-top: 28px; }

@media (min-width: 900px) {
  .hero-intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: end;
    padding-block: 88px 96px;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.card .icon { margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; font-size: 1.5rem; }
.card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* On phones the icon sits beside the text, so four cards don't fill four screens. */
@media (max-width: 599.98px) {
  .cards { gap: 12px; }

  .card {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 18px;
    padding: 22px 20px 24px;
  }

  .card .icon { grid-row: span 2; width: 36px; height: 36px; margin: 2px 0 0; }
  .card h3 { margin-bottom: 6px; font-size: 1.375rem; }

  .hero .actions .button { flex: 1 1 auto; }
}

.split-head {
  display: grid;
  gap: 32px;
}

.prose { max-width: 38em; }

@media (min-width: 900px) {
  .split-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: start;
  }
}

.facts {
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
}

.facts li {
  display: grid;
  gap: 2px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.facts strong {
  color: var(--red);
  font: normal 2.25rem/1.1 var(--serif);
}

.facts span { color: var(--muted); font-size: 0.9375rem; }


/* Call to action */

.cta {
  padding-block: 64px;
  background: var(--red);
  color: rgba(255, 255, 255, 0.9);
}

.cta-inner { display: grid; gap: 24px; }
.cta h2 { margin-bottom: 10px; color: #fff; }
.cta a:not(.button) { color: #fff; }

@media (min-width: 800px) {
  .cta { padding-block: 80px; }
  .cta-inner { grid-template-columns: 1fr auto; column-gap: 48px; align-items: center; }
}


/* People */

.member {
  display: grid;
  gap: 24px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.member:first-child { padding-top: 0; border-top: 0; }
.member:last-child { padding-bottom: 0; }

.member .picture {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper);
}

.member h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
}

.member .info { max-width: 38em; }

@media (min-width: 800px) {
  .member {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    align-items: start;
    padding-block: 64px;
  }

  /* Long bios scroll past the photo, which stays in view. */
  .member .picture { position: sticky; top: 32px; }
}


/* Services */

.service {
  display: grid;
  gap: 16px 56px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.service:first-child { padding-top: 0; border-top: 0; }
.service:last-child { padding-bottom: 0; }

.service-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-head .icon { flex: none; }
.service h2 { font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem); }
.service p { max-width: 38em; }

@media (min-width: 800px) {
  .service {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    padding-block: 48px;
  }
}


/* Contact */

.contact-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: start;
  }
}

.details {
  display: grid;
  gap: 22px;
  margin: 0;
}

.details dt { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.details dd { margin: 2px 0 0; color: var(--ink); }

/* A quiet word to existing clients, under the office details. */
.review-note {
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 24em;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.contact-form {
  padding: 28px 22px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(35, 32, 29, 0.04), 0 16px 40px -16px rgba(35, 32, 29, 0.14);
}

@media (min-width: 600px) { .contact-form { padding: 40px 40px 44px; } }

.contact-form h2 { margin-bottom: 6px; font-size: 2rem; }
.form-note { margin-bottom: 28px; color: var(--muted); font-size: 0.9375rem; }

.field { display: block; margin-bottom: 20px; }

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-row { display: grid; column-gap: 16px; }

@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.4 var(--sans); /* 16px keeps iPhones from zooming in */
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 38, 31, 0.15);
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--red);
  background: #fdf4f3;
}

.contact-form .button { width: 100%; margin-top: 8px; }
.contact-form .button:disabled { opacity: 0.6; cursor: default; }

@media (min-width: 600px) { .contact-form .button { width: auto; padding-inline: 32px; } }

/* Hidden from people; bots that fill it in are dropped. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* New Braunfels calendar */

.calendar iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 4px;
}


/* Footer */

.site-footer {
  padding-top: 64px;
  background: var(--night);
  color: #cbc3bb;
  font-size: 0.9375rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid { display: grid; gap: 40px; }

.footer-sigil {
  display: inline-flex;
  padding: 24px 22px;
  background: var(--red);
}

.footer-sigil img { width: 132px; }
.footer-brand p { max-width: 17em; margin-top: 20px; }
.footer-nav li + li { margin-top: 6px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-block: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9c938a;
  font-size: 0.875rem;
}

.footer-base p { margin: 0; }
.site-footer .attribution a { color: #9c938a; }
.site-footer .attribution a:hover { color: #fff; }

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1.5fr 1fr; }
}


/* Load-in: blocks marked data-reveal rise into place as they scroll into view
   (js/reveal.js). They're only hidden once the page's script has added the js
   class, so everything still shows without JavaScript. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* Print */

@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
  .menu, .header-actions, .contact-form, .calendar, .cta { display: none; }
  .sigil, .footer-sigil { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}
