/* Laakso Lock & Key
 *
 * Reproduces the look of the original site (WordPress Twenty Seventeen,
 * dark colour scheme). Every colour and type value below is taken from the
 * archived theme in ../../../site/wp-content/themes/twentyseventeen/ —
 * style.css for typography and metrics, assets/css/colors-dark.css for the
 * palette. Rewritten from ~113K of theme CSS to only what this site uses.
 *
 * No JavaScript. No framework. One file.
 */

:root {
  /* Palette — colors-dark.css */
  --bg:            #222;   /* body, content */
  --bg-header:     #262626;/* site header */
  --text:          #eee;   /* body text */
  --text-heading:  #ccc;   /* h2, blockquote */
  --text-muted:    #bbb;   /* meta, secondary */
  --text-dim:      #666;   /* icons, footnotes */
  --border:        #333;   /* tables, nav, footer */
  --border-strong: #444;   /* list separators */
  --link-hover:    #fff;
  --button-bg:     #eee;
  --button-text:   #222;

  /* Metrics — style.css */
  --content: 740px;        /* .wrap on small screens / text column */
  --wide:    1000px;       /* .wrap at >= 48em */
  --pad:     2em;
}

/* ---------- fonts ---------- *
 * Self-hosted; the archived theme's copies were never captured by the
 * Wayback Machine. See ../fonts/README.txt for provenance and licence.
 */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/libre-franklin-800.woff2") format("woff2");
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 0.9375rem;          /* 15px, as the theme */
  font-weight: 400;
  line-height: 1.66;
}

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1.5em; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.75em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; color: var(--text-heading); }
h3 { font-size: 1rem; letter-spacing: 0.02em; }

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--link-hover); }

:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--button-bg); color: var(--button-text);
  padding: 0.75em 1.25em; z-index: 10;
}
.skip-link:focus { left: 1em; top: 1em; }

.wrap {
  margin: 0 auto;
  max-width: var(--content);
  padding: 0 var(--pad);
}

.muted { color: var(--text-muted); }

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

.site-header {
  background: var(--bg-header);
  text-align: center;
  padding: 2.5em 0 0;
}

.site-branding { padding-bottom: 1.75em; }

.custom-logo { margin: 0 auto 0.75em; width: 96px; height: 96px; }

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.site-title a { text-decoration: none; }

.site-description {
  color: var(--text-muted);
  margin: 0.5em 0 0;
}

/* ---------- navigation (no JS: a wrapping inline list) ---------- */

/* Pinned to the top of the viewport at every width, with the frosted
   treatment borrowed from the vvs-minimal navbar. It is a sibling of the
   header rather than a child so that nothing bounds the sticky box.
   Background is lighter than the page on purpose: against #222 the rounded
   corners would have nothing to show against. */
.main-navigation {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #303030;            /* opaque fallback; see @supports below */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
}

/* Only go translucent where the blur actually works; without it the bar
   would sit see-through over the text scrolling underneath. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .main-navigation {
    background: rgba(48, 48, 48, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }
}

/* Full service names on wide screens, as the original menu had them; the
   short forms on phones, where the long ones wrap the bar onto four lines. */
.nav-short { display: none; }

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2em;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--wide);
}

.main-navigation a {
  display: block;
  padding: 1em 0;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.main-navigation a:hover { color: var(--link-hover); }
.main-navigation a.active {
  color: var(--link-hover);
  font-weight: 600;
  border-bottom-color: var(--button-bg);
}

.nav-phone a { color: var(--text); font-weight: 600; }

/* ---------- header image ---------- */

.header-image {
  border-bottom: 1px solid var(--border);
  max-height: 380px;
  overflow: hidden;
}
.header-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* ---------- content ---------- */

.site-content { padding: 3em 0; }

.entry + .entry { border-top: 1px solid var(--border); padding-top: 3em; }

.entry-header { margin-bottom: 1.5em; }

.entry-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.4em;
}

.entry-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.entry-meta {
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-media { margin: 0 0 2em; }
.entry-media img { width: 100%; max-height: 400px; object-fit: cover; }

.entry-content > :last-child { margin-bottom: 0; }

.lead { font-size: 1.0625rem; color: var(--text); }

/* Service / tip lists */

.checklist { list-style: none; margin: 0 0 1.5em; padding: 0; }
.checklist li { position: relative; padding-left: 1.75em; margin-bottom: 0.6em; }
.checklist li::before {
  content: "\2013";              /* en dash, matching the theme's plain look */
  position: absolute; left: 0;
  color: var(--text-muted);
}

.steps { margin: 0 0 1.5em; padding-left: 1.4em; }
.steps li { margin-bottom: 0.6em; }

/* Front page panels */

.panel { padding: 3em 0; border-top: 1px solid var(--border); }
.panel:first-of-type { border-top: 0; }
.panel-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5em;
}

.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list > li { margin-bottom: 2.5em; }
.panel-list > li:last-child { margin-bottom: 0; }
.panel-list h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.panel-list h3 a { text-decoration: none; }
.panel-list img { margin-bottom: 1em; max-height: 260px; width: 100%; object-fit: cover; }

.more-link { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }

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

.button {
  display: inline-block;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border: 0;
}
.button:hover, .button:focus { background: #fff; color: var(--button-text); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75em; margin: 0 0 1.5em; }

/* ---------- callout ---------- */

/* An action block, not a note: outlined rather than filled, because #333 on
   #222 reads as a smudge. The call button carries the visual weight. */
.callout {
  border: 1px solid var(--border-strong);
  padding: 1.75em;
  margin: 3em 0 0;
}

.callout-lead {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 1.25em;
}

.callout-action { margin: 0; }
.callout .button { padding: 1em 1.75em; }

/* ---------- hours table ---------- */

.hours { border-collapse: collapse; width: 100%; max-width: 24em; }
.hours th, .hours td {
  padding: 0.5em 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 400;
}
.hours th { padding-right: 1.5em; white-space: nowrap; }
.hours td { text-align: right; white-space: nowrap; color: var(--text-muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed th, .hours .closed td { color: var(--text-dim); }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3em 0 2em;
  font-size: 0.8125rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5em;
}

.footer-columns h2 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1em;
}

.footer-phone { font-size: 1.125rem; font-weight: 800; }
.footer-phone a { text-decoration: none; }

.site-info {
  border-top: 1px solid var(--border);
  margin-top: 2.5em;
  padding-top: 1.5em;
  color: var(--text-dim);
}
.site-info p { margin: 0; }

/* ---------- lists ---------- */

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 0.5em; }
.inline { display: flex; flex-wrap: wrap; gap: 0 1.5em; }
.inline li { margin-bottom: 0.5em; }

/* ---------- error page ---------- */

.error-code {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  margin: 0 0 0.2em;
}

/* ---------- mobile call bar ---------- *
 * Small screens only: the one action worth keeping within thumb reach the
 * whole way down the page. Hidden from 48em up, where the header phone
 * number stays visible anyway.
 */

.call-bar { display: none; }

@media screen and (max-width: 47.9375em) {
  .call-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border-top: 1px solid var(--border);
    /* Clear of the iOS home indicator. */
    padding: 1em 1em calc(1em + env(safe-area-inset-bottom, 0px));
  }
  .call-bar:active { background: #fff; }

  /* Keep the bar from covering the end of the footer. */
  body { padding-bottom: 4.5em; }

  /* The footer repeats the navigation's links. On a phone that is a long
     stack to scroll past, and the navigation sits at the top of the same
     page, so drop the duplicates and keep only what it doesn't carry. */
  .footer-dup { display: none; }

  /* Short service names, so the pinned bar stays one or two lines instead
     of the four the full names wrap onto at this width. */
  .nav-full { display: none; }
  .nav-short { display: inline; }

  .main-navigation ul { gap: 0 1.25em; }
  .main-navigation a { padding: 0.75em 0; }
}

/* ---------- wide screens ---------- */

@media screen and (min-width: 48em) {
  .wrap { max-width: var(--wide); }



  /* Text stays in a readable column even when the wrap widens. */
  .entry-content, .entry-header, .panel-list > li > .panel-text {
    max-width: var(--content);
  }

  .site-content { padding: 4em 0; }

  .panel-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5em 2em;
  }
  .panel-list > li { margin-bottom: 0; }

  .two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
  }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .main-navigation, .header-image, .button-row, .callout, .skip-link,
  .call-bar { display: none; }
  a { color: inherit; text-decoration: none; }
}
