/* Markhuba LLC — corporate site
   Ledger / shipping-document aesthetic: calm, restrained, single accent. */

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* ---------- tokens ---------- */
:root {
  --paper: #F7F6F2;
  --ink: #16211F;
  --spruce: #14524A;
  --line: #D9D6CC;
  --muted: #5D6B67;

  --font-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: 'Public Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--spruce);
  color: var(--paper);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout ---------- */
.wrap {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--spruce);
  color: var(--paper);
  padding: 0.7em 1.1em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- ledger rule motif ---------- */
.rule-double {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rule-double span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--line);
}
.rule-double span:last-child {
  height: 2px;
  background: var(--spruce);
}

/* ---------- header ---------- */
.site-header {
  padding-top: 28px;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding-bottom: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s ease;
}
.brand:hover .wordmark,
.brand:focus-visible .wordmark {
  color: var(--spruce);
}

.hero-kicker {
  margin-bottom: 14px;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1.4em;
  row-gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--spruce);
  border-bottom-color: var(--spruce);
}
.header-nav a[aria-current="page"] {
  color: var(--spruce);
  border-bottom-color: var(--spruce);
}
/* ---------- main / sections ---------- */
main {
  padding-block: 44px 72px;
}
.home-main {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
main a {
  color: var(--spruce);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
main a:hover,
main a:focus-visible {
  text-decoration-color: var(--spruce);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature-card {
  border-top: 2px solid var(--spruce);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  min-height: 3.4rem;
}
.feature-card p {
  color: var(--ink);
}

.contact address,
.prose address {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 18px 22px;
  display: inline-block;
  align-self: flex-start;
}

/* ---------- document pages (privacy / terms / data-deletion) ---------- */
.doc-header {
  padding-top: 40px;
  padding-bottom: 36px;
}
.doc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem);
  color: var(--ink);
}
.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.prose {
  padding-top: 8px;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 2.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.prose > *:first-child {
  margin-top: 0;
}

/* Part A / Part B carry more weight than an ordinary h2: the intro text
   promises exactly two top-level parts, so their heading level needs to
   read as a size above regular sections, not level with them. */
.prose h2.part-heading {
  margin-top: 3.2em;
  padding-bottom: 0.5em;
  font-size: 1.5rem;
  color: var(--spruce);
  border-bottom: 2px solid var(--spruce);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 1.7em;
}
.prose p {
  margin-top: 1em;
}
.prose ul,
.prose ol {
  margin-top: 1em;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose address {
  margin-top: 1em;
}
.prose strong {
  font-weight: 600;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(20, 82, 74, 0.08);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.15em 0.5em;
}

/* ---------- table of contents (long documents) ---------- */
.toc {
  border: 1px solid var(--line);
  padding: 18px 22px;
  margin-bottom: 8px;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 24px;
}
.toc a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.toc a:hover,
.toc a:focus-visible {
  color: var(--spruce);
  border-bottom-color: var(--spruce);
}

/* ---------- footer ---------- */
.site-footer {
  padding-bottom: 48px;
}
.footer-row {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1.4em;
  row-gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--spruce);
  border-bottom-color: var(--spruce);
}
.footer-nav a[aria-current="page"] {
  color: var(--spruce);
  border-bottom-color: var(--spruce);
}
.mono-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.footer-copy a {
  color: var(--muted);
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}
.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: var(--spruce);
  text-decoration-color: var(--spruce);
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .wrap {
    padding-inline: 22px;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 1.15rem + 2vw, 2.1rem);
  }
  /* The first card's top rule sits directly under "What We Do" and reads
     as the heading's own underline (no other h2 on the page gets one).
     Drop it only here; the rule between stacked cards below still works
     as an honest divider. */
  .feature-grid .feature-card:first-child {
    border-top: none;
    padding-top: 0;
  }
  /* Masaüstünde üç sütunu hizalayan min-height, tek sütunlu mobilde yalnız
     ölü boşluk bırakıyor (final tur regresyon B) */
  .feature-card h3 {
    min-height: 0;
  }
}
