/* Weisshuhn IP & Technology — site stylesheet */

:root {
  --ink: #1d2129;
  --muted: #5b6270;
  --accent: #1f3a5c;
  --accent-dark: #16293f;
  --rule: #e4e2dd;
  --bg: #fbfaf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 3rem 1.25rem 5rem;
}

/* Header ------------------------------------------------------------ */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
}

.skip:focus {
  left: 0;
  z-index: 10;
}

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand span {
  font-weight: 400;
  color: var(--muted);
}

nav.main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
}

nav.main a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

nav.main a:hover {
  color: var(--accent);
}

nav.main a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 1.5px;
}

/* Typography --------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}

p {
  margin: 0 0 1.1rem;
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

main li + li {
  margin-top: 0.45rem;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(31, 58, 92, 0.35);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

address {
  font-style: normal;
  margin: 0 0 1.1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.name-sub {
  font-size: 1rem;
  color: var(--muted);
  margin: -0.6rem 0 0.9rem;
}

.updated {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Highlight for bracketed placeholders — remove the .placeholder class
   (or this rule) once the real details are filled in. */
.placeholder {
  background: #fdf3d2;
  border-radius: 2px;
  padding: 0 0.15em;
}

.portrait {
  float: right;
  width: min(240px, 42%);
  height: auto;
  margin: 0.4rem 0 1rem 1.75rem;
  border: 1px solid var(--rule);
}

/* About ------------------------------------------------------------- */

main.about {
  max-width: 64rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  align-items: start;
}

.about-coop {
  border-left: 1px solid var(--rule);
  padding-left: 3rem;
}

.section-firm {  margin: 0 0 1.25rem;
}

.coop-sub {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.coop-note {
  font-size: 0.85rem;
  color: var(--muted);
  width: 100%;
  margin: 0 0 0.75rem;
}

/* Home -------------------------------------------------------------- */

main.home {
  max-width: 55rem;
}

.hero {
  padding-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo {
  width: min(254px, 38%);
  height: auto;
  border: 1px solid var(--rule);
}

ul.way {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

ul.way li {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  padding-left: 2.2rem;
  position: relative;
}

ul.way li + li {
  margin-top: 1.15rem;
}

ul.way li::before {
  content: "\2026";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.cta {
  margin-top: 2.75rem;
  text-align: center;
}

.cta a {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  padding: 0.55em 1.2em;
  letter-spacing: 0.01em;
}

.cta a:hover {
  background: var(--accent);
  color: #fff;
}

/* Footer ------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
}

footer.site p {
  margin: 0;
}

footer.site nav {
  display: flex;
  gap: 1.5rem;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--accent);
}

/* Small screens ------------------------------------------------------ */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-coop {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 2rem;
  }
}

@media (max-width: 640px) {
  header.site .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 1.1rem;
  }

  nav.main ul {
    gap: 0.25rem 1.25rem;
  }

  main {
    padding-top: 2.25rem;
  }

  ul.way li {
    font-size: 1.1rem;
    padding-left: 1.8rem;
  }

  .portrait {
    float: none;
    width: min(220px, 60%);
    margin: 0.25rem 0 1.5rem;
  }

  .hero {
    flex-direction: column;
    gap: 0;
  }

  .hero-photo {
    width: min(220px, 60%);
    margin-top: 2rem;
    order: 1;
  }
}
