/* About page: additions to styles.css */

.ab { padding-top: 130px; }
.ab__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.ab .hero__title { font-size: clamp(34px, 5.4vw, 78px); }
.ab .hero__title .line { white-space: nowrap; }
.ab__lede { margin: 0; color: var(--ink-2); }

/* the hat switch: one card with two faces. GC Fabrications is dark with teal, Ahura is paper with yellow. */
.hat { --hbg: var(--white); --hfg: var(--ink); --hmut: var(--muted); --hrule: var(--rule); --hacc: var(--accent);
  background: var(--hbg); color: var(--hfg); border: 1px solid var(--hfg); padding: clamp(18px, 3vw, 36px);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease); }
.hat[data-hat="gcf"] { --hbg: #0b0e11; --hfg: #eef0f2; --hmut: #8b9198; --hrule: #252a30; --hacc: #19b8a6; }
.hat__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--hrule); transition: border-color .6s; }
.hat__q { color: var(--hmut); }
.hat__switch { display: inline-flex; border: 1px solid var(--hfg); border-radius: 2px; transition: border-color .6s; }
.hat__switch button { appearance: none; border: 0; background: transparent; color: var(--hfg); cursor: pointer; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; transition: background .3s, color .3s; }
.hat__switch button[aria-pressed="true"] { background: var(--hacc); color: #0f1012; }

.hat__stage { display: grid; }
.hat__face { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: clamp(22px, 3vw, 36px);
  opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; }
.hat[data-hat="gcf"] .hat__face--gcf, .hat[data-hat="ahura"] .hat__face--ahura { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.hat__logo { grid-column: 1 / -1; height: 34px; width: auto; max-width: 70%; }
.hat__face--ahura .hat__logo { height: 62px; margin: -14px 0 -14px -6px; }
.hat__big { margin: 0; font: 800 clamp(30px, 4.6vw, 68px)/.92 var(--sans); font-variation-settings: "wdth" 116; text-transform: uppercase; letter-spacing: -.03em; }
.hat__facts { margin: 0; border-top: 2px solid var(--hfg); }
.hat__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hrule); }
.hat__facts dt { font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hmut); }
.hat__facts dd { margin: 0; font-weight: 600; }
.hat__link { grid-column: 1 / -1; justify-self: start; color: var(--hfg); font: 600 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 14px 18px; border: 1px solid var(--hfg); border-radius: 2px; transition: background .3s, color .3s; }
.hat__link:hover { background: var(--hacc); color: #0f1012; border-color: var(--hacc); }
.hat__foot { margin: clamp(20px, 3vw, 32px) 0 0; padding-top: 16px; border-top: 1px solid var(--hrule); color: var(--hmut); transition: border-color .6s; }

/* title block: the grid gap shows the ink background through as ruled lines */
.tb { display: grid; grid-template-columns: 220px repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 3px solid var(--ink); }
.tb__cell { background: #fdfcf9; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tb__cell span { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tb__cell strong { font: 600 clamp(14px, 1.5vw, 19px)/1.25 var(--mono); letter-spacing: .01em; text-transform: uppercase; }
.tb__cell--logo { grid-row: span 3; display: grid; place-items: center; padding: 10px; }
.tb__cell--logo img { width: 100%; max-width: 190px; }

@media (max-width: 1000px) {
  .ab { padding-top: 104px; }
  .ab__head { grid-template-columns: 1fr; }
  .ab .hero__title { font-size: clamp(30px, 9vw, 78px); }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb__cell--logo { grid-row: auto; grid-column: 1 / -1; }
  .tb__cell--logo img { max-width: 160px; }
  .tb__cell:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hat__face { grid-template-columns: 1fr; }
  .hat__switch { width: 100%; }
  .hat__switch button { flex: 1; padding: 13px 8px; font-size: 10px; }
  .hat__facts div { grid-template-columns: 92px 1fr; }
  .tb { grid-template-columns: 1fr; }
}
