/*
 * Portside — base stylesheet.
 *
 * Shared tokens, typography, buttons and layout helpers only.
 * Block stylesheets must never redefine anything in this file.
 */

:root {
  --ps-clay: #9d6956;
  --ps-clay-dk: #7d5240;
  --ps-rose: #c2a091;
  --ps-green: #1e331e;
  --ps-green-lt: #2c452c;
  --ps-gold: #c99a3f;
  --ps-ink: #0f1210;
  --ps-cream: #f6f3ee;
  --ps-sand: #efe9e1;
  --ps-gray: #6f6f6f;
  --ps-body: #55524e;
  --ps-white: #fff;

  --ps-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ps-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ps-wrap: 1120px;
  --ps-gutter: 24px;
}

/* ---------- reset ---------- */

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

body {
  margin: 0;
  font-family: var(--ps-sans);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ps-ink);
  background: var(--ps-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--ps-serif);
  font-weight: 400;
  line-height: 1.14;
  margin: 0;
}

h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* inline, matching the hand-coded original. Sections that need it on its own
   line set display:block themselves (see the footer CTA band). */
.ps-eyebrow {
  font-family: var(--ps-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ps-clay);
}

.ps-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ps-body);
}

/* A short gold rule used to separate a heading from what follows. */
.ps-rule {
  width: 70px;
  height: 2px;
  background: var(--ps-gold);
  border: 0;
  margin: 24px auto;
}

.ps-rule--left { margin: 0 0 22px; width: 56px; background: var(--ps-green); }

/* ---------- layout ---------- */

.ps-wrap {
  max-width: var(--ps-wrap);
  margin: 0 auto;
  padding: 0 var(--ps-gutter);
}

.ps-block { position: relative; }

/* Sections carry their own vertical rhythm so blocks stack predictably. */
.ps-section { padding: clamp(64px, 8vw, 96px) 0; }
.ps-section--tight { padding: clamp(44px, 5vw, 64px) 0; }

.ps-on-dark { color: #fff; }
.ps-on-dark h1,
.ps-on-dark h2,
.ps-on-dark h3 { color: #fff; }
.ps-on-dark .ps-eyebrow { color: var(--ps-gold); }

/* ---------- buttons ---------- */

.ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ps-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  /* No border on the solid button: the hand-coded original has none, and a
     transparent one would make it 3px wider than the design. The outlined
     variants declare their own. */
  border: 0;
  background: var(--ps-clay);
  color: #fff;
  cursor: pointer;
  transition: background .22s, transform .22s, color .22s;
}

.ps-btn:hover { background: var(--ps-clay-dk); transform: translateY(-2px); }

.ps-btn--ghost {
  background: none;
  border: 1.5px solid rgba(255, 255, 255, .75);
  color: #fff;
}
/* No translateY here: the hand-coded ghost button fills without lifting.
   Only the solid button lifts. Keep it that way. */
.ps-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ps-ink); transform: none; }

.ps-btn--dark {
  background: none;
  border: 1.5px solid var(--ps-ink);
  color: var(--ps-ink);
}
.ps-btn--dark:hover { background: var(--ps-ink); color: #fff; }

.ps-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.ps-btns--center { justify-content: center; }

/* ---------- media ---------- */

/* Full-bleed art behind a section. The image is a real <img> rather than a CSS
   background so WordPress can serve responsive sizes for it. */
.ps-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ps-media img { width: 100%; height: 100%; object-fit: cover; }

.ps-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 18, 16, var(--ps-dim, .56));
}
.ps-overlay > *:not(.ps-media) { position: relative; z-index: 2; }

/* ---------- accessibility ---------- */

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ps-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
