/* Keltikos — shared styles.
   Deep bottle green ground, aged gold accent, bone text.
   No webfonts and no external requests: the CSP forbids them. */

:root {
  --bg:       #0b1410;
  --bg-glow:  #12211a;
  --surface:  #101c16;
  --ink:      #e9e5dc;
  --ink-dim:  #93a09a;
  --accent:   #c8a262;
  --accent-d: #9d7c44;
  --moss:     #1e3a2d;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;

  --wrap:  62rem;
  --prose: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(70rem 45rem at 50% -10%, var(--bg-glow) 0%, transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; text-wrap: balance; }

/* Skip link — visible only on keyboard focus. */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--ink);
}

/* ---------- site header ---------- */

.site-head {
  border-bottom: 1px solid var(--moss);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand img { width: 22px; height: 22px; display: block; }
.brand:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: .9375rem;
}
.site-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: .04em;
}
.site-nav a:hover { color: var(--accent); }

/* ---------- triskele mark ---------- */

.mark {
  width: clamp(92px, 20vw, 124px);
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  color: var(--accent);
  filter: drop-shadow(0 0 22px rgb(200 162 98 / 0.16));
}
/* Every animated part below is styled in its FINISHED state, with the animation
   running from a hidden `from`. If animations never run — reduced motion, an old
   browser, a failed stylesheet — the mark is still fully visible. Never make the
   resting state the invisible one. */
.mark .spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 160s linear infinite;
}
.mark .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 130;      /* one arm is ~124.4 units long */
  stroke-dashoffset: 0;
  animation: draw 2s cubic-bezier(.22,.61,.36,1) both;
}
.mark .stroke:nth-of-type(1) { animation-delay: .15s; }
.mark .stroke:nth-of-type(2) { animation-delay: .35s; }
.mark .stroke:nth-of-type(3) { animation-delay: .55s; }

.mark .ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: .32;
  animation: ring-in 1.6s ease-out 1.4s both;
}
.mark .dot { fill: currentColor; animation: fade-in 1.2s ease-out 2s both; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(3.5rem, 11vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2rem, 8.5vw, 3.1rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
}
.hero .lede {
  max-width: 34rem;
  margin: 1.5rem auto 2rem;
  font-size: clamp(1.0625rem, 3.4vw, 1.25rem);
  color: var(--ink);
  text-wrap: pretty;
}
.rule {
  width: 3.5rem;
  height: 1px;
  margin: 1.75rem auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
}

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

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .05em;
  border: 1px solid var(--moss);
  border-radius: 999px;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgb(200 162 98 / 0.07);
}
.btn-primary { border-color: var(--accent-d); }

/* ---------- sections ---------- */

.section {
  padding: clamp(3rem, 8vh, 4.5rem) 0;
  border-top: 1px solid var(--moss);
}
.section > .wrap > h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
}
.section .sub {
  margin: 0 0 2.5rem;
  color: var(--ink-dim);
  max-width: var(--prose);
}
.section p { text-wrap: pretty; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--moss);
  border-radius: 8px;
}
.card h3 {
  margin: 0 0 .6rem;
  font-size: 1.1875rem;
  color: var(--accent);
}
.card p { margin: 0; color: var(--ink-dim); }

.measure { max-width: var(--prose); }

.about-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.portrait {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--moss);
  object-fit: cover;
}

.creds {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--prose);
}
.creds li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .6rem;
  color: var(--ink-dim);
}
.creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: .45rem;
  height: .45rem;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.contact-block { text-align: center; }
.contact-block .sub { margin-inline: auto; }
.contact-block .btn { margin-top: .5rem; }

/* ---------- legal / prose pages ---------- */

.prose {
  max-width: var(--prose);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vh, 4rem);
}
.prose h1 {
  margin: 0 0 .25rem;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
}
.prose .updated {
  margin: 0 0 2.5rem;
  font-size: .875rem;
  color: var(--ink-dim);
  letter-spacing: .03em;
}
.prose h2 {
  margin: 2.75rem 0 .75rem;
  font-size: 1.3125rem;
  color: var(--accent);
}
.prose h3 {
  margin: 1.75rem 0 .5rem;
  font-size: 1.0625rem;
  font-family: var(--sans);
  font-weight: 600;
}
.prose p, .prose li { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--accent-d); }

.note {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  color: var(--ink-dim);
  font-size: .9375rem;
}
.note strong { color: var(--ink); }

.table-scroll { overflow-x: auto; margin: 1.25rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 30rem;
}
th, td {
  text-align: left;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--moss);
  vertical-align: top;
}
th { color: var(--accent); font-weight: 600; }
td { color: var(--ink-dim); }

.toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--moss);
  border-radius: 8px;
  font-size: .9375rem;
}
.toc ol { margin: .5rem 0 0; padding-left: 1.25rem; }
.toc li { margin-bottom: .25rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--moss);
  padding: 2.5rem 0;
  font-size: .875rem;
  color: var(--ink-dim);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.foot-links a { color: var(--ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* Company identification — required by Directive 2000/31/EC art. 5,
   and what Stripe/Revolut check against the register. */
.company {
  margin: 0;
  line-height: 1.75;
}
.company dt { display: none; }
.company dd { margin: 0; }
.company .legal-name { color: var(--ink); }

.copyright { margin: 1.5rem 0 0; }

/* ---------- motion ---------- */

@keyframes draw    { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
@keyframes ring-in { from { opacity: 0; } to { opacity: .32; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin    { to { transform: rotate(360deg); } }

.hero .mark  { animation: fade-up 1.1s ease-out both; }
.hero h1     { animation: fade-up 1s ease-out .2s both; }
.hero .lede  { animation: fade-up 1s ease-out .5s both; }
.hero .cta   { animation: fade-up 1s ease-out .7s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .mark .stroke { stroke-dashoffset: 0; }
}
