/* Palmulae site styles.
   Layout: the name set like a Latin lexicon entry under a Roman galley whose oars all pull one way, then a rack of
   business cards, each painted in its own blade colors like oars on a boathouse wall.
   Fonts are served from this site (assets/fonts), so visits reach no other company. */

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/cormorant-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --paper: #F2F5F3;
  --card: #FBFCFB;
  --ink: #132326;
  --ink-soft: #4B5D5F;
  --rule: #D3DCD8;
  --accent: #1C5A50;
  --blade-navy: #1E3D5E;
  --blade-sage: #86AE9C;
  --blade-maroon: #7B2F3A;
  --blade-gold: #C29D3F;
  --blade-white: #FBFCFB;
  --font-display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101211;
    --card: #181B1A;
    --ink: #F2F5F3;
    --ink-soft: #A3AAA7;
    --rule: #2C302E;
    --accent: #F2F5F3;
    --blade-navy: #6F8FB6;
    --blade-sage: #94BBA9;
    --blade-maroon: #B8636F;
    --blade-gold: #D2B15C;
    --blade-white: #F2F5F3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101211;
  --card: #181B1A;
  --ink: #F2F5F3;
  --ink-soft: #A3AAA7;
  --rule: #2C302E;
  --accent: #F2F5F3;
  --blade-navy: #6F8FB6;
  --blade-sage: #94BBA9;
  --blade-maroon: #B8636F;
  --blade-gold: #D2B15C;
  --blade-white: #F2F5F3;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -3rem;
  padding: .5rem .75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  z-index: 10;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + .5rem); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.page {
  max-width: 62rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) calc(env(safe-area-inset-bottom, 0px) + 2.5rem);
  display: grid;
  gap: clamp(3rem, 8vw, 5rem);
}
.main { display: grid; gap: clamp(3rem, 8vw, 5rem); min-width: 0; }

/* Site bar */
.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.bar-name {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.bar-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9rem; }
.bar-links a { color: var(--ink-soft); text-decoration: none; }
.bar-links a:hover { color: var(--ink); text-decoration: underline; }

/* Home: hero */
.hero { display: grid; gap: 1.1rem; justify-items: start; }
.hero .mark { margin-bottom: .4rem; }
/* The mark: a Roman galley, ram forward and stern curled, its bank of oars pulling as one.
   On load the oars take one stroke and the galley surges ahead. */
.mark { --cut: var(--paper); width: clamp(12rem, 32vw, 16rem); height: auto; color: var(--ink); overflow: visible; }
.mark .hull, .mark .palm { fill: currentColor; }
.mark .trim { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.mark .loom { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mark .cut { fill: none; stroke: var(--cut); stroke-width: 1.1; }
.mark .eye { fill: var(--cut); }
.mark .shield { fill: none; stroke: currentColor; stroke-width: 1.4; }
.mark .wave { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; opacity: .4; }
.oar { transform-box: fill-box; transform-origin: 50% 0%; transform: rotate(32deg); }
@media (prefers-reduced-motion: no-preference) {
  .oar { animation: pull 1300ms cubic-bezier(.4, .1, .2, 1) 250ms both; }
  .ship { animation: surge 1700ms cubic-bezier(.3, .6, .2, 1) 250ms both; }
}
@keyframes pull { from { transform: rotate(-26deg); } }
@keyframes surge { from { transform: translateX(-12px); } }

.wordmark {
  margin: .25rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 15vw, 9.5rem);
  line-height: .85;
  letter-spacing: -.015em;
}
.entry {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  color: var(--ink-soft);
}
.entry .hw { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; color: var(--ink); }
.entry .pos { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.entry .def { font-size: .95rem; }
.tagline {
  margin: .9rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  text-wrap: balance;
}
.lede { margin: 0; max-width: 34rem; font-size: 1.125rem; color: var(--ink-soft); text-wrap: pretty; }

/* Sections */
.section { display: grid; gap: 1.5rem; }
.section-head { display: grid; gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.section-head h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-head p { margin: 0; max-width: 40rem; color: var(--ink-soft); font-size: .95rem; }

/* Business cards */
.ventures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 640px) { .ventures { grid-template-columns: minmax(0, 1fr); } }
.venture {
  min-width: 0;
  display: grid;
  gap: .55rem;
  align-content: start;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.venture h3 {
  margin: .6rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.05;
}
.venture h3 a { color: var(--ink); text-decoration: none; }
.venture h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.venture p { margin: 0; color: var(--ink-soft); }
.venture .where {
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Oar blades */
.blade { display: block; width: 8rem; height: auto; overflow: visible; }
.blade .shaft { stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.blade .base { fill: var(--c1); }
.blade .stripe { fill: var(--c2); }
.blade .edge { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-width: .75; }
.blade-turn { transform-box: fill-box; transform-origin: 0% 50%; transition: transform 450ms cubic-bezier(.2, .75, .25, 1); }
@media (prefers-reduced-motion: no-preference) {
  .venture:hover .blade-turn { transform: rotate(-6deg); }
}

.chip {
  justify-self: start;
  margin-top: .3rem;
  padding: .15rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Contact */
.contact-line {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* A business's own page */
.biz { display: grid; gap: 1rem; justify-items: start; max-width: 44rem; min-width: 0; }
.biz .blade { width: 11rem; }
.biz-name {
  margin: .5rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: .95;
  text-wrap: balance;
}
.biz-line {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink-soft);
}
.biz-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.visit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.visit:hover { background: var(--ink); color: var(--paper); }
.biz-contact { margin: 0; color: var(--ink-soft); }

/* Documents: privacy, terms, not found */
.doc { display: grid; gap: 1rem; max-width: 40rem; min-width: 0; }
.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow a { color: var(--ink-soft); text-decoration: none; }
.eyebrow a:hover { color: var(--ink); text-decoration: underline; }
.updated { margin: 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); }
.prose { display: grid; gap: .9rem; min-width: 0; }
.prose p, .prose ul { margin: 0; }
.prose h2 { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  color: var(--ink-soft);
}
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); }

/* Whole card is the link to the business's page */
.venture { position: relative; }
.venture h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 3px; }
.venture:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.venture h3 a:focus-visible { outline: none; }
.venture:hover { border-color: var(--ink-soft); }

.biz-legal { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9rem; }
.biz-legal a { color: var(--ink-soft); }
.biz-legal a:hover { color: var(--ink); }

/* Preview builds only (build.py --preview): a note that the page isn't live */
.preview-note {
  max-width: 62rem;
  margin: 0 auto;
  padding: .9rem max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.preview-note > div {
  display: grid;
  gap: .55rem;
  padding: .6rem .85rem;
  border: 1px dashed var(--ink-soft);
  border-radius: 3px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.preview-note p, .preview-note details { margin: 0; }
.preview-note summary { cursor: pointer; color: var(--accent); }
.preview-note img { display: block; width: 100%; max-width: 40rem; height: auto; margin-top: .6rem; border: 1px solid var(--rule); }
