/* Pikewood LLC — shared styles */

:root {
  --paper: #faf8f3;
  --paper-deep: #f1ede3;
  --card: #fffdf8;
  --ink: #1c241f;
  --ink-soft: #4c554f;
  --ink-faint: #7a837c;
  --pine: #2e5d45;
  --pine-deep: #1e4231;
  --pine-mist: #e4ece5;
  --copper: #b0632f;
  --line: #ddd6c8;
  --line-soft: #e8e2d5;
  --max: 64rem;
  --narrow: 42rem;
  --shadow-sm: 0 1px 2px rgba(28, 36, 31, 0.05), 0 2px 8px rgba(28, 36, 31, 0.04);
  --shadow-md: 0 2px 4px rgba(28, 36, 31, 0.05), 0 12px 32px -8px rgba(28, 36, 31, 0.14);
  --shadow-lg: 0 4px 8px rgba(28, 36, 31, 0.06), 0 24px 56px -16px rgba(30, 66, 49, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
}

/* Layered atmosphere: gradient wash + fine grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 18% -8%, rgba(46, 93, 69, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% -5%, rgba(176, 99, 47, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(46, 93, 69, 0.06) 0%, transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
}

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--copper); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(250, 248, 243, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1.1rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.brand:hover { color: var(--ink); }
.brand .mark { color: var(--pine); transition: color 0.25s ease; }
.brand:hover .mark { color: var(--copper); }
.site-nav a {
  margin-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--copper);
  transition: right 0.25s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pine-deep); }

/* Hero */
.hero {
  position: relative;
  padding: 6.5rem 0 5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  max-width: 44rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--pine);
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 1.4rem;
}
.hero .kicker::before {
  content: "";
  width: 2rem;
  height: 1.5px;
  background: var(--copper);
}
.hero p.lede {
  margin-top: 1.6rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.platforms {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.platforms span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pine-deep);
  background: var(--pine-mist);
  border: 1px solid rgba(46, 93, 69, 0.18);
  border-radius: 99px;
  padding: 0.3rem 0.95rem;
}

/* Load-in reveal */
.reveal { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
section { padding: 3.5rem 0; }
.rule { border: 0; border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
section .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
section h2 { font-size: 1.75rem; }
section .section-head .count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
section > .wrap > p, section .intro { color: var(--ink-soft); max-width: 38rem; }

/* App cards */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pine) 0%, var(--copper) 100%);
  opacity: 0.85;
}
.app-card::after {
  content: "";
  position: absolute;
  top: -3rem; right: -3rem;
  width: 9rem; height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 93, 69, 0.07) 0%, transparent 70%);
  transition: transform 0.4s ease;
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 93, 69, 0.3);
}
.app-card:hover::after { transform: scale(1.5); }
.app-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(145deg, var(--pine) 0%, var(--pine-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px -2px rgba(30, 66, 49, 0.4);
}
.app-icon svg { width: 1.5rem; height: 1.5rem; stroke: #f4f1e8; }
.app-icon.copper { background: linear-gradient(145deg, #c0703a 0%, #8f4d22 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px -2px rgba(143, 77, 34, 0.4); }
.app-icon.slate { background: linear-gradient(145deg, #45524b 0%, #2b332e 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 4px 12px -2px rgba(43, 51, 46, 0.45); }
.app-card h3 { font-size: 1.3rem; font-weight: 600; }
.app-card p { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }
.app-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.app-card .plats { font-size: 0.8rem; letter-spacing: 0.05em; color: var(--ink-faint); }
a.status { text-decoration: none; }
a.status:hover { color: var(--copper); border-color: rgba(176, 99, 47, 0.4); }
.app-card .status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  border: 1px solid rgba(46, 93, 69, 0.25);
  border-radius: 99px;
  padding: 0.18rem 0.7rem;
  background: var(--pine-mist);
}

/* Craft strip */
.craft {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.2rem 2.5rem;
  margin-top: 2.2rem;
}
.craft h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.craft h3::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--copper);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.craft p { font-size: 0.95rem; color: var(--ink-soft); }

/* Contact band */
.contact-band {
  background: linear-gradient(150deg, var(--pine-deep) 0%, var(--pine) 85%);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  margin: 1rem 0 2rem;
  color: #eef2ea;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 90% at 85% 10%, rgba(192, 112, 58, 0.25) 0%, transparent 60%);
}
.contact-band > * { position: relative; }
.contact-band h2 { color: #f7f5ee; font-size: 1.9rem; margin-bottom: 0.6rem; }
.contact-band p { max-width: 34rem; color: rgba(238, 242, 234, 0.85); }
.contact-band a.button {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--pine-deep);
  background: #f4f1e8;
  text-decoration: none;
  border-radius: 99px;
  padding: 0.75rem 1.7rem;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-band a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.4);
  color: var(--copper);
}

/* Article pages (privacy, support) */
.article { padding: 4rem 0 2rem; }
.article h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.article .meta { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 2.4rem; }
.article h2 {
  font-size: 1.5rem;
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.article h3 { font-size: 1.12rem; margin: 1.7rem 0 0.5rem; }
.article ul { margin: 0.7rem 0 0.7rem 1.3rem; }
.article li + li { margin-top: 0.4rem; }
.article p + p { margin-top: 0.9rem; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(241, 237, 227, 0.6), rgba(241, 237, 227, 0.6)),
    var(--paper-deep);
  padding: 2.4rem 0 2.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-soft); }
