/* Arturo Perry Construction — shared styles (home + projects) */
:root {
  --ink: #15110d;          /* steel window frames */
  --ink-soft: #211b16;
  --limestone: #efe6d6;    /* fireplace stone */
  --plaster: #f7f2e9;      /* warm-white walls */
  --saltillo: #b5582f;     /* tile */
  --saltillo-deep: #8f4222;
  --cedar: #8a5a34;        /* beams + mantel */
  --oak: #6b7350;          /* live oaks outside */
  --muted: #b9ab97;
  --line: rgba(239, 230, 214, .18);
  --line-dark: rgba(21, 17, 13, .22);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --data: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4.2vw, 72px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--limestone); font-family: var(--display); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--limestone); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--saltillo); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.micro {
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 12px;
  background: linear-gradient(180deg, rgba(21,17,13,.72), rgba(21,17,13,0));
  transition: background 300ms ease;
}
.site-header.is-solid { background: var(--ink); border-bottom: 1px solid var(--line); }
.brand { justify-self: start; text-decoration: none; display: grid; line-height: 1; }
.brand strong { font-size: 15px; font-weight: 760; letter-spacing: -.02em; text-transform: uppercase; }
.brand span { margin-top: 5px; color: var(--muted); }
.site-header__center { color: rgba(239,230,214,.8); }
.site-nav { justify-self: end; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; color: var(--limestone);
}
.site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.site-nav .nav-call { border: 1px solid rgba(239,230,214,.5); white-space: nowrap; }
.site-nav .nav-call:hover { background: var(--limestone); color: var(--ink); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 54px; padding: 0 20px;
  font-family: var(--data); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}
.btn::after { content: "→"; font-size: 16px; }
.btn--solid { background: var(--saltillo); border-color: var(--saltillo); color: #fff; }
.btn--solid:hover { background: var(--saltillo-deep); border-color: var(--saltillo-deep); }
.btn--ghost:hover { background: var(--limestone); color: var(--ink); border-color: var(--limestone); }

/* ---------- light editorial sections ---------- */
.paper { background: var(--plaster); color: var(--ink); }
.section { position: relative; z-index: 10; padding: clamp(84px, 11vw, 170px) var(--gutter); }
.section__head {
  display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 40px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line-dark);
}
.dark .section__head { border-color: var(--line); }
.section__kicker { margin: 0 0 18px; color: var(--saltillo); }
.section__title {
  margin: 0; max-width: 12ch;
  font-size: clamp(48px, 8.4vw, 136px); font-weight: 790;
  font-variation-settings: "wdth" 86; letter-spacing: -.065em; line-height: .86; text-transform: uppercase;
}
.section__aside { justify-self: end; max-width: 30rem; margin: 0; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; letter-spacing: -.02em; }

/* ---------- footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--ink); color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }

@media (max-width: 780px) {
  :root { --gutter: 16px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 58px; }
  .site-header__center { display: none; }
  .site-nav .nav-hide-sm { display: none; }
  .section__head { grid-template-columns: 1fr; gap: 22px; }
  .section__aside { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; }
  .callbar {
    position: fixed; inset: auto 0 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--ink); border-top: 1px solid var(--line);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 54px;
    text-decoration: none; font-family: var(--data); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  }
  .callbar a + a { background: var(--saltillo); color: #fff; }
  body { padding-bottom: 54px; }
}
