/* Plumbline — one-page site
   Ported from the design canvas "Plumbline — identity and site":
   layout and copy from the Site boards, logotype direction D (bob shape 1). */

:root {
  --paper: #F3F1EC;
  --paper-2: #FBFAF7;
  --ink: #15181B;
  --ink-2: #4A4E52;
  --ink-3: #5A5E62;
  --rule: #DCD6CA;
  --rule-2: #C9C3B7;
  --brass: #8F5F31;

  --serif: Spectral, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grotesk: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;

  --gutter: 96px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--brass); }

h1, h2, p { margin: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0 var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--gutter) 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  /* room for the drop below the baseline */
  padding-bottom: 1.1em;
  margin-bottom: -1.1em;
}
.wordmark:hover { color: var(--ink); }

/* The i of "line" is drawn, not typeset: the real glyph stays in the text
   for spacing, selection and copy, but is transparent, and one SVG draws
   dot, stem, plumb line and bob in a single coordinate system so nothing
   depends on how a browser rasterises type.
   Geometry measured from Schibsted Grotesk 500; viewBox units are 0.01 em:
   dot ø0.15 centred 0.68 above baseline, stem 0.10 wide × 0.525 tall,
   line continues 0.52 below the baseline, bob 0.34 wide × 0.75 tall. */
.wordmark .drop {
  position: relative;
  color: transparent;
}
.wordmark .plumb {
  position: absolute;
  left: -0.073em;             /* stem centre sits 0.127 em into the glyph box; SVG is 0.4 em wide */
  top: 0.0575em;              /* baseline is 0.8575 em below the box top; SVG top is 0.80 em above baseline */
  width: 0.4em;
  height: 2.05em;
  display: block;
  fill: var(--ink);
}

.contact {
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 3px;
}

/* Hero */

.hero { padding: 150px var(--gutter) 110px; }

.hero h1 {
  max-width: 880px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 62px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 36px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Services */

.services {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}

.num {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.services h2 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.services p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Footer */

.site-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--rule);
}

.site-footer .brand {
  display: flex;
  align-items: baseline;
  gap: 26px;
}

.site-footer .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}

.site-footer .motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}

.site-footer .meta {
  display: flex;
  align-items: baseline;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-3);
}

.site-footer .meta a {
  text-decoration: none;
  color: var(--ink-3);
}
.site-footer .meta a:hover { color: var(--brass); }

/* Tablet */

@media (max-width: 900px) {
  :root { --gutter: 48px; }

  .hero { padding: 110px var(--gutter) 80px; }
  .hero h1 { font-size: 46px; }

  .services {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px var(--gutter);
  }

}

/* Phone — follows the mobile board */

@media (max-width: 560px) {
  :root { --gutter: 28px; }

  .site-header { padding-top: 28px; }
  .wordmark { font-size: 22px; }
  .contact { display: none; }

  .hero { padding: 64px var(--gutter) 48px; }
  .hero h1 { font-size: 34px; line-height: 1.18; letter-spacing: -0.015em; }
  .hero p { margin-top: 22px; font-size: 16px; }

  .services { padding: 36px var(--gutter); gap: 30px; }
  .num { font-size: 15px; }
  .services h2 { margin: 10px 0 8px; font-size: 21px; }
  .services p { font-size: 15px; line-height: 1.65; }


  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 24px var(--gutter) 32px;
  }
  .site-footer .brand { order: 2; justify-content: space-between; }
  .site-footer .name { display: none; }
  .site-footer .motto { font-size: 15px; }
  .site-footer .meta { order: 1; flex-wrap: wrap; gap: 12px 18px; font-size: 13px; }
  .site-footer .meta a {
    width: 100%;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--rule-2);
    padding-bottom: 4px;
    align-self: flex-start;
    width: auto;
  }
}

/* Consent notice */

.consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  margin: 0 auto;
  max-width: 560px;
  padding: 18px 22px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 30px rgba(21, 24, 27, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  z-index: 10;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent button {
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.consent button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.consent button:hover { border-color: var(--brass); }
.consent button.primary:hover { background: var(--brass); border-color: var(--brass); }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-actions { justify-content: flex-end; }
}

/* Header right: language switch + contact */

.header-right { display: flex; align-items: baseline; gap: 28px; }
.lang {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-3);
}
.lang:hover { color: var(--brass); }

/* Questions */

.faq {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
}
.faq dl { margin: 0; max-width: 700px; }
.faq dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq dd {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq dd + dt { margin-top: 36px; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 20px; padding: 56px var(--gutter); }
}
@media (max-width: 560px) {
  .faq { padding: 36px var(--gutter) 40px; gap: 18px; }
  .faq dt { font-size: 18px; }
  .faq dd { font-size: 15px; line-height: 1.65; }
  .faq dd + dt { margin-top: 28px; }
}

.label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 560px) { .label { font-size: 12px; } }
