/* Matson Enterprises — site styles */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0f1b2d;
  --ink-2: #1a2a40;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --text: #1c2430;
  --muted: #5b6472;
  --on-ink: #eae6dc;
  --on-ink-muted: #a9b0bb;
  --brass: #a8864a;
  --brass-soft: #c9ae7c;
  --rule: #d9d3c5;
  --rule-ink: rgba(234, 230, 220, 0.14);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brass); color: var(--ink); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

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

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  color: var(--on-ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 88px;
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  line-height: 1.2;
}
.brand-name small {
  display: block; font-weight: 400; letter-spacing: 0.18em;
  color: var(--on-ink-muted); font-size: 10.5px; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--on-ink-muted);
  transition: color .2s ease;
}
.nav a:hover { color: var(--on-ink); }
.nav .lang {
  border: 1px solid var(--rule-ink); padding: 5px 10px; border-radius: 2px;
  color: var(--on-ink);
}
.nav .lang:hover { border-color: var(--brass-soft); }

@media (max-width: 720px) {
  .nav a:not(.lang) { display: none; }
  .brand-name small { display: none; }
}

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

.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  padding: 200px 0 140px;
}
.hero::before {
  /* fine architectural grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-ink) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 85% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 85% 30%, #000 0%, transparent 70%);
  opacity: .55;
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 28px;
}
.eyebrow::before {
  content: ""; width: 36px; height: 1px; background: currentColor;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--brass-soft); }

.hero .lede {
  max-width: 560px;
  margin: 36px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--on-ink-muted);
}

.hero-actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
  color: var(--ink); background: var(--brass-soft);
  border-radius: 2px;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { background: #d6be90; }
.btn svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: var(--rule-ink); }
.btn-ghost:hover { background: rgba(234, 230, 220, 0.06); border-color: var(--brass-soft); }

/* ---------- Sections ---------- */

section { scroll-margin-top: 24px; }
.section { padding: clamp(88px, 11vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

.label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass);
  margin: 10px 0 0;
  display: flex; align-items: center; gap: 12px;
}
.label span { color: var(--muted); font-weight: 500; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 24px;
}
.section-head p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }
.section-head p:last-child { margin-bottom: 0; }

/* principles */
.principles {
  list-style: none; padding: 0;
  margin: clamp(56px, 7vw, 88px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.principles li { padding: 32px 32px 0 0; }
.principles li + li { padding-left: 32px; border-left: 1px solid var(--rule); }
.principles h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 24px; line-height: 1.2; color: var(--ink);
  margin: 0 0 10px;
}
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 28px 0; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--rule); }
}

/* activities */
.section-alt { background: var(--paper-2); }

.activities {
  margin: clamp(56px, 7vw, 88px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 40px 34px 38px;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--brass-soft); }
.card-num {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--brass);
  margin-bottom: 44px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-num svg { width: 30px; height: 30px; color: var(--ink); opacity: .85; }
.card h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 27px; line-height: 1.15; color: var(--ink);
  margin: 0 0 14px;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .activities { grid-template-columns: 1fr; }
}

/* contact */
.contact-grid {
  margin: clamp(48px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.contact-grid > div { padding: 28px 28px 0 0; }
.contact-grid > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.contact-grid dt {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.contact-grid dd {
  margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.35;
  color: var(--ink);
}
.contact-grid dd a { text-decoration: none; border-bottom: 1px solid var(--brass-soft); }
.contact-grid dd a:hover { color: var(--brass); }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div, .contact-grid > div + div { padding: 24px 0; border-left: 0; }
  .contact-grid > div + div { border-top: 1px solid var(--rule); }
}
.contact-grid dd { overflow-wrap: anywhere; }

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

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 13.5px;
  padding: 56px 0 44px;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 24px;
  padding-bottom: 32px; border-bottom: 1px solid var(--rule-ink);
}
.site-footer .brand { color: var(--on-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-ink); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 24px; line-height: 1.6;
}
.footer-legal p { margin: 0; }

/* ---------- Legal page ---------- */

.page-hero { padding: 180px 0 80px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; margin: 0; max-width: none;
}
.prose { max-width: 72ch; padding: clamp(64px, 8vw, 96px) 0; }
.prose h2 { font-size: clamp(28px, 3vw, 34px); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--ink); text-decoration-color: var(--brass-soft); text-underline-offset: 3px; }
.id-table { width: 100%; border-collapse: collapse; margin: 8px 0 8px; font-size: 15.5px; }
.id-table th, .id-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.id-table th { width: 38%; font-weight: 500; color: var(--muted); padding-right: 16px; }
.updated { color: var(--muted); font-size: 14px; margin-top: 48px; }

/* 404 */
.center-page {
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  background: var(--ink); color: var(--on-ink); padding: 40px var(--gutter);
}
.center-page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 64px); margin: 24px 0 12px; }
.center-page p { color: var(--on-ink-muted); margin: 0 0 36px; }
.center-page .brand { justify-content: center; }

/* Print */
@media print {
  .site-header, .hero-actions, .skip { display: none; }
  .hero, .site-footer { background: none; color: #000; padding: 24px 0; }
  .hero::before { display: none; }
}
.nowrap { white-space: nowrap; }
