/* php.sw13designs.com — matches the ai.sw13designs.com look */
:root {
  --black: #000;
  --ink: #313131;
  --graphite: #515151;
  --sage: #899083;
  --sage-200: #a7aca2;
  --sage-100: #c4c8c1;
  --mist: #e2e3e0;
  --white: #fff;
  --off-white: #f9f9f9;
  --gold: #d6b456;
  --sans: Jost, "Century Gothic", system-ui, sans-serif;
  --heading: var(--sans);
  --serif: "Libre Caslon Text", Georgia, serif;
  /* section backgrounds; overridden by the CMS theme */
  --bg-header: #000; --bg-hero: #000; --bg-tools: #e2e3e0; --bg-mission: #515151; --bg-page: #e2e3e0; --bg-footer: #000;
  --hex-w: 300px;
  --hex-h: 346px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--black); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--sage-200); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--black); padding: 8px 12px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* Eyebrows and headings */
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; color: var(--graphite); }
.eyebrow--light { color: var(--white); }
.eyebrow .accent { color: var(--gold); }
.h2 { font-family: var(--heading); margin: 20px 0 64px; font-size: 40px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--black); text-align: center; line-height: 1.2; }

/* Buttons: square, uppercase, outlined */
.btn { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 10px 16px; border: 1px solid currentColor; background: none; color: inherit; font-family: inherit; cursor: pointer; }
.btn:hover { background: currentColor; }
.btn:hover > * { color: inherit; }
.btn--light { color: var(--white); }
.btn--light:hover { color: var(--black); background: var(--white); }
.btn--dark { color: var(--black); }
.btn--dark:hover { color: var(--white); background: var(--black); }
.btn--outline-sage { font-size: 12px; font-weight: 600; padding: 14px 22px; border-color: var(--sage); color: var(--white); }
.btn--outline-sage:hover { background: var(--sage); color: var(--black); }
.btn--gold { font-size: 12px; font-weight: 600; padding: 14px 22px; background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Logo (text mark) */
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--white); }
.logo__mark { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.logo__sub { font-size: 13px; margin-top: 4px; }
img.logo, .logo img { height: auto; max-width: 203px; }
.logo--dark { color: var(--black); }
.logo--dark .logo__mark { font-size: 22px; }
.logo--dark .logo__sub { font-size: 11px; }

/* Header */
.site-header { background-color: var(--bg-header); min-height: 96px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a:not(.btn) { color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--gold); }
.site-nav .btn { margin-left: 24px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }

/* Hero */
.hero { position: relative; background-color: var(--bg-hero); min-height: 760px; padding: 120px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.hero--short { min-height: 520px; }
.hero__title { font-family: var(--heading); margin: 24px 0 0; font-size: clamp(56px, 7vw, 98px); font-weight: 200; letter-spacing: .14em; color: var(--white); line-height: 1; }
.hero__title .serif { letter-spacing: 0; color: var(--sage); }
.hero__sub { margin: 28px 0 0; font-size: 14px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--sage-100); }
.hero__explore { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage-100); text-decoration: none; position: relative; z-index: 1; }
.ridges { position: absolute; left: 0; bottom: 0; width: 100%; height: 420px; display: block; }
.hero--short .ridges { height: 260px; }
.hero__cta { margin-top: 48px; position: relative; z-index: 1; }

/* Hex grid */
.section-mist { background-color: var(--bg-tools); padding: 120px 24px 140px; display: flex; flex-direction: column; align-items: center; }
.hexgrid { display: flex; flex-direction: column; align-items: center; }
.hexrow { display: flex; gap: 16px; }
.hexrow + .hexrow { margin-top: calc(var(--hex-h) * -0.21); }
.hex {
  width: var(--hex-w); height: var(--hex-h);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  text-align: center; padding: 0 40px; color: var(--white);
}
.hex__title { font-size: 20px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.3; }
.hex__tag { font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.hex__img { max-width: 180px; max-height: 80px; width: auto; height: auto; }
.btn--hex, .btn--hex:hover { color: inherit; }
.btn--hex:hover { background: rgba(128,128,128,.25); }
.hex--black { background: var(--black); }
.hex--black .hex__tag { color: var(--gold); }
.hex--ink { background: var(--ink); }
.hex--ink .hex__tag { color: var(--sage-100); }
.hex--graphite { background: var(--graphite); }
.hex--graphite .hex__tag { color: var(--mist); }
.hex--sage { background: var(--sage); color: var(--black); }
.hex--gold { background: var(--gold); color: var(--black); }
.hex--white { background: var(--white); color: var(--black); }
.hex--white .hex__tag { color: var(--graphite); font-size: 13px; }

/* Mission band */
.mission { background-color: var(--bg-tools); }
.section-mist.bg-page { background-color: var(--bg-page); }
.mission .ridges { position: static; height: 260px; }
.mission__body { background-color: var(--bg-mission); padding: 24px 24px 96px; text-align: center; }
.mission__body h2 { margin: 0; font-size: 32px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: var(--white); }
.mission__body p { margin: 28px auto 0; max-width: 760px; font-size: 18px; font-weight: 300; line-height: 1.8; color: var(--off-white); }

/* Blog list */
.posts { width: 100%; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post { background: var(--white); padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; }
.post__date { font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--graphite); }
.post__img, .article__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.post__img { margin: -40px -32px 8px; width: calc(100% + 64px); max-width: none; }
.article__img { margin-bottom: 32px; }
.post h3 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--black); line-height: 1.35; }
.post p { margin: 0; flex: 1; }
.post .btn { align-self: flex-start; }

/* Article */
.article { width: 100%; max-width: 760px; background: var(--white); padding: 56px 48px; font-size: 17px; }
.article h1 { margin: 0 0 8px; font-size: 32px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--black); line-height: 1.25; }
.article h2 { font-size: 20px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--black); margin-top: 40px; }

/* Forms */
.form { width: 100%; max-width: 640px; background: var(--white); padding: 48px; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--black); }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--sage-200); background: var(--white); color: var(--black); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--black); }
.field textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; font-size: 15px; }
.notice--ok { background: var(--sage); color: var(--black); }
.notice--err { background: var(--black); color: var(--white); }
.form .btn { justify-self: start; font-size: 12px; font-weight: 600; padding: 14px 22px; }

/* Footer */
.site-footer { background-color: var(--bg-footer); padding: 72px 40px 32px; color: var(--sage-100); }
.site-footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__grid > div { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.site-footer h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--white); }
.site-footer a:not(.btn) { text-decoration: none; }
.site-footer__brand { align-items: flex-start; gap: 20px !important; }
.site-footer__brand .logo__mark { font-size: 24px; }
.site-footer__brand .logo__sub { font-size: 12px; }
.site-footer__base { max-width: 1200px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .08em; color: var(--sage-200); }

/* Tablet: hexes shrink */
@media (max-width: 1000px) {
  :root { --hex-w: 240px; --hex-h: 277px; }
  .hex { padding: 0 28px; gap: 10px; }
  .hex__title { font-size: 16px; }
}

/* Phone */
@media (max-width: 760px) {
  .site-header { padding: 0 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: absolute; top: 96px; left: 0; right: 0; z-index: 10; background: var(--black); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 24px; border-top: 1px solid var(--ink); }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; width: 100%; }
  .site-nav .btn { margin: 12px 0 0; }
  .hero { min-height: 620px; padding-top: 80px; }
  .hero__sub { letter-spacing: .25em; }
  .ridges { height: 260px; }
  .h2 { font-size: 30px; margin-bottom: 40px; }
  :root { --hex-w: 260px; --hex-h: 300px; }
  .hexrow { flex-direction: column; align-items: center; }
  .hexrow + .hexrow { margin-top: 16px; }
  .section-mist { padding: 80px 16px 96px; }
  .mission__body h2 { font-size: 24px; }
  .article, .form { padding: 32px 20px; }
  .site-footer { padding: 56px 16px 24px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
