:root {
  --hanse-top: #1e3852;
  --hanse-bottom: #3e5f7f;
  --brick: #9d2e2e;
  --ink: #233444;
  --muted: #6e7f8c;
  --line: #d8e0e6;
  --paper: #ffffff;
  --content: 680px;
  --header: 1080px;

  --spine-blue: #315d8a;
  --spine-red: #9b5144;
  --spine-yellow: #b89a39;
  --spine-green: #6d8f63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* Header and footer */

.site-header,
.site-footer {
  color: #fff;
  background: linear-gradient(to bottom, var(--hanse-top), var(--hanse-bottom));
}

.site-header {
  min-height: 158px;
}

.header-inner {
  width: min(var(--header), calc(100% - 112px));
  min-height: 158px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 84px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand-name {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--brick);
}

.brand-subline {
  margin-top: 0.8rem;
  font-size: 1.18rem;
  white-space: nowrap;
}

.brand-subline b {
  margin-inline: 0.4rem;
  color: #fff;
  font-weight: 400;
}

.main-navigation {
  display: flex;
  gap: 3.2rem;
  font-size: 1.18rem;
  font-weight: 500;
  white-space: nowrap;
}

.main-navigation a {
  padding: 0.45rem 0 0.4rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.main-navigation a.is-active {
  border-bottom-color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 7px 0;
  background: #fff;
}

/* Layout and typography */

.content-column {
  width: min(var(--content), calc(100% - 48px));
  margin-left: calc(50% - (var(--content) / 2) - 24px);
  margin-right: auto;
}

h1,
h2 {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, serif;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(1.95rem, 2.55vw, 2.25rem);
  line-height: 1.2;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

p {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  line-height: 1.55;
}

.section {
  padding: 2rem 0;
}

.section:first-child {
  padding-top: 5.4rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.intro h1 {
  white-space: nowrap;
}

.intro p:last-child {
  margin-bottom: 0;
}

.section-label {
  margin-bottom: 1.8rem;
  color: var(--brick);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Start page */

.book-feature {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  align-items: center;
}

.book-cover-link {
  display: block;
  width: fit-content;
  line-height: 0;
  text-decoration: none;
}

.book-cover-image {
  display: block;
  width: 190px;
  height: auto;
  box-shadow: 0 8px 20px rgba(35, 52, 68, 0.14);
}

.book-copy h2 {
  margin-bottom: 0.9rem;
}

.book-copy p:last-child {
  margin-bottom: 0;
}

.book-title-link,
.text-link a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.book-title-link:hover,
.book-title-link:focus-visible,
.text-link a:hover,
.text-link a:focus-visible {
  color: var(--hanse-top);
  text-decoration-line: underline;
  text-decoration-color: var(--brick);
}

.text-link {
  margin-top: 1.15rem;
  margin-bottom: 0;
  font-weight: 600;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-section article {
  padding-right: 2.75rem;
}

.split-section article + article {
  padding: 0 0 0 2.75rem;
  border-left: 1px solid var(--line);
}

/* Subpages */

.subpage {
  min-height: 58vh;
  padding: 5.4rem 0 6rem;
}

.page-intro {
  padding-bottom: 2rem;
}

.page-intro h1 {
  margin-bottom: 1.1rem;
}

.page-intro p:last-child {
  margin-bottom: 0;
}

/* Publications */

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-entry {
  position: relative;
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 12px;
  align-items: stretch;
  padding: 1rem 0;
}

.publication-entry::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.publication-entry:last-child::after {
  display: none;
}

.book-spine {
  display: block;
  width: 5px;
  min-height: 54px;
  height: 100%;
  border-radius: 3px;
  align-self: stretch;
}

.publication-entry:nth-child(4n + 1) .book-spine {
  background: var(--spine-blue);
}

.publication-entry:nth-child(4n + 2) .book-spine {
  background: var(--spine-red);
}

.publication-entry:nth-child(4n + 3) .book-spine {
  background: var(--spine-yellow);
}

.publication-entry:nth-child(4n + 4) .book-spine {
  background: var(--spine-green);
}

.publication-content {
  align-self: center;
  padding: 0.1rem 0;
}

.publication-entry h2 {
  margin: 0 0 0.18rem;
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.25;
}

.publication-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.meta-separator {
  margin-inline: 0.35rem;
}

.external-link {
  color: var(--brick);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.external-link:hover,
.external-link:focus-visible {
  text-decoration: underline;
}

/* Contact and legal */

.contact-address {
  margin-top: 1.6rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.08rem;
}
.email-address {
  display: inline-flex;
  align-items: baseline;
}

.email-part {
  display: inline-block;
  direction: rtl;
  unicode-bidi: bidi-override;
}

.email-user {
  display: inline-flex;
  order: 1;
}

.email-user::after {
  content: "@";
}

.email-domain {
  display: inline-flex;
  order: 2;
}

.email-domain::after {
  content: ".";
}

.email-hyphen::before {
  content: "-";
}

.email-tld {
  order: 3;
}

/* Footer */

.site-footer {
  min-height: 118px;
}

.footer-inner {
  width: min(var(--header), calc(100% - 112px));
  min-height: 118px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.footer-inner p {
  margin: 0;
  font-size: 1.05rem;
}

.footer-inner nav {
  display: flex;
  gap: 2.2rem;
  font-size: 1.05rem;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */

@media (max-width: 1024px) {
  .header-inner,
  .footer-inner {
    width: min(100% - 40px, var(--header));
  }

  .site-header,
  .header-inner {
    min-height: 132px;
  }

  .content-column {
    width: min(var(--content), calc(100% - 40px));
    margin-inline: auto;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 122px;
    left: 20px;
    right: 20px;
    z-index: 10;
    padding: 1rem 1.25rem;
    background: var(--hanse-top);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .main-navigation.is-open {
    display: flex;
  }

  .main-navigation a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .main-navigation a.is-active {
    border-bottom-color: #fff;
  }

  .menu-button {
    display: block;
  }
}

@media (max-width: 720px) {
  .brand {
    align-items: flex-start;
  }

  .brand-name {
    font-size: 2.35rem;
  }

  .brand-subline {
    font-size: 1.05rem;
  }

  .intro h1 {
    white-space: normal;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1.08rem;
  }

  .section:first-child,
  .subpage {
    padding-top: 4rem;
  }

  .book-feature {
    grid-template-columns: 1fr;
  }

  .book-cover-image {
    width: 170px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section article {
    padding: 0;
  }

  .split-section article + article {
    margin-top: 2.7rem;
    padding: 2.7rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .publication-entry {
    grid-template-columns: 7px 1fr;
    column-gap: 10px;
  }

  .book-spine {
    width: 4px;
  }

  .publication-entry h2 {
    font-size: 1.28rem;
  }

  .publication-meta {
    font-size: 0.94rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .main-navigation a,
  .book-title-link,
  .text-link a {
    transition: none;
  }
}

/* Contact page */
.contact-layout{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:3rem;align-items:start}
.contact-copy h1{margin-bottom:1.35rem}
.contact-address{margin-top:1.8rem;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.08rem}
.contact-closing{margin-top:1.35rem;margin-bottom:0}
.contact-portrait{margin:0}
.contact-portrait img{display:block;width:160px;height:auto;box-shadow:0 8px 20px rgba(35,52,68,.14)}
@media(max-width:720px){
  .contact-layout{grid-template-columns:1fr;gap:2.25rem}
  .contact-portrait{order:-1}
  .contact-portrait img{width:140px}
}


/* Contact page */

.contact-section h1 {
  margin-bottom: 1.8rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-portrait {
  margin: 0;
}

.contact-portrait img {
  display: block;
  width: 190px;
  height: auto;
  box-shadow: 0 8px 20px rgba(35, 52, 68, 0.14);
}

.contact-copy {
  padding-top: 0.1rem;
}

.contact-copy p:first-child {
  margin-top: 0;
}

.contact-address {
  margin-top: 1.8rem;
  margin-bottom: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.08rem;
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-portrait img {
    width: 170px;
  }
}


/* Legal pages */

.legal-content > h1 {
  margin-bottom: 2rem;
}

.legal-content section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.legal-content section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-content h2 {
  margin-bottom: 0.75rem;
  font-size: 1.42rem;
}

.legal-content p {
  font-size: 1.08rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-note {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-placeholder {
  padding-left: 1rem;
  border-left: 4px solid var(--spine-yellow);
  color: var(--muted);
  font-style: italic;
}

/* Profile page */
.profile-section h1{margin-bottom:1.8rem}
.profile-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:2.4rem;align-items:start}
.profile-photo{margin:0}
.profile-photo img{display:block;width:280px;height:auto;box-shadow:0 8px 20px rgba(35,52,68,.14)}
.profile-copy p:first-child{margin-top:0}
.profile-guiding-thought{margin-top:1.7rem;margin-bottom:0;padding-top:1.35rem;border-top:1px solid var(--line);color:var(--brick);font-family:Georgia,serif;font-size:1.35rem;font-weight:600}
.footer-inner a.is-active{text-decoration:underline;text-underline-offset:4px}
@media(max-width:820px){
  .profile-layout{grid-template-columns:220px minmax(0,1fr);gap:2rem}
  .profile-photo img{width:220px}
}
@media(max-width:720px){
  .profile-layout{grid-template-columns:1fr;gap:2rem}
  .profile-photo img{width:100%;max-width:420px}
}

/* Profile page  */
.profile-content::after{content:"";display:block;clear:both}
.profile-content>h1{margin-bottom:1.8rem}
.profile-photo-float{float:left;width:280px;margin:0 2.4rem 1.35rem 0}
.profile-photo-float img{display:block;width:100%;height:auto;box-shadow:0 8px 20px rgba(35,52,68,.14)}
.profile-content p{hyphens:auto}
.profile-guiding-thought{clear:both;margin-top:1.9rem;margin-bottom:0;padding-top:1.35rem;border-top:1px solid var(--line);color:var(--brick);font-family:Georgia,serif;font-size:1.35rem;font-weight:600}
@media(max-width:820px){.profile-photo-float{width:220px;margin-right:2rem}}
@media(max-width:720px){.profile-photo-float{float:none;width:100%;max-width:420px;margin:0 0 2rem}}
