/* ============================================================
   Portside Commerce — corporate landing page
   ------------------------------------------------------------
   Retheme for product sites by changing the variables in :root.
   ============================================================ */

:root {
  /* Brand */
  --accent:       #0d3b66;    /* deep navy — primary */
  --accent-hover: #0a2d4d;    /* darker navy — hover */

  /* Neutrals */
  --text:         #1a1a1a;
  --text-muted:   #5a5a5a;
  --bg:           #ffffff;
  --border:       #e5e7eb;

  /* Layout */
  --max-width:    960px;
  --radius:       6px;

  /* Spacing scale */
  --space-1:      0.5rem;
  --space-2:      1rem;
  --space-3:      1.5rem;
  --space-4:      2.5rem;
  --space-5:      4rem;

  /* Type */
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ----- Reset / base ------------------------------------------------ */

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

html {
  font-size: 16px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----- Layout containers ------------------------------------------- */

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

/* ----- Header / wordmark ------------------------------------------- */

.site-header {
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
}

.wordmark {
  display: inline-block;
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent-hover);
  text-decoration: none;
}

/* ----- Hero / tagline ---------------------------------------------- */

.hero {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.25rem);
  font-weight: 600;
  margin: 0;
  max-width: 36ch;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ----- Products ----------------------------------------------------- */

.products {
  padding: var(--space-5) 0;
}

.products h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 750px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
}

.product-card {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.product-card h3 {
  margin: 0 0 var(--space-1);
  font-size: 1.125rem;
  font-weight: 600;
}

.product-card p {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
}

.product-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
}

.product-link + .product-link {
  margin-top: var(--space-1);
}

.product-status {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ----- Legal pages (privacy, terms) -------------------------------- */

.legal {
  max-width: 65ch;
  margin: 0 auto;
  padding: var(--space-5) 0;
}

.legal h1 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
}

.legal-updated {
  margin: 0 0 var(--space-4);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--space-4) 0 var(--space-2);
}

.legal p {
  margin: 0 0 var(--space-2);
}

.legal ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: var(--space-1);
}

.legal-contact {
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 var(--space-4);
}

.legal-back {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

/* ----- Footer ------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-company {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 60ch;
}

@media (min-width: 750px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
