@font-face {
  font-family: "Calibre";
  src: url("../fonts/Calibre-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Calibre";
  src: url("../fonts/Calibre-Medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Portrait Text";
  src: url("../fonts/PortraitTextWeb-Regular2.woff") format("woff");
  font-style: normal;
  font-weight: 400;
}

:root {
  --paper: #f8f6f0;
  --ink: #101820;
  --blue: #132943;
  --red: #9d2f2f;
  --green: #607d5f;
  --muted: #61665e;
  --line: rgba(16, 24, 32, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: "Calibre", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(16, 24, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: min(100%, 1180px);
  background: rgba(248, 246, 240, 0.76);
  box-shadow:
    -1px 0 0 rgba(16, 24, 32, 0.08),
    1px 0 0 rgba(16, 24, 32, 0.08);
  transform: translateX(-50%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 240, 0.7);
}

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

.brand {
  font-family: "Portrait Text", Georgia, serif;
  font-size: 1.55rem;
}

.site-nav,
.site-footer nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.site-nav {
  margin-left: auto;
}

.site-nav a,
.site-footer a,
.language-toggle {
  position: relative;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.site-nav a::after,
.site-footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after,
.site-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(16, 24, 32, 0.24);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.5);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 24px;
  transform: translateY(1px);
}

.language-toggle:hover {
  border-color: rgba(157, 47, 47, 0.5);
  color: var(--red);
}

.language-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.hero {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1180 / 600;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 3.56% 3.22%;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.measure-rail {
  position: absolute;
  top: 3.56cqw;
  bottom: 3.56cqw;
  left: 3.22cqw;
  width: 4.41cqw;
  border-left: 1px solid rgba(16, 24, 32, 0.1);
  color: rgba(16, 24, 32, 0.4);
  font-family: Georgia, serif;
  font-size: 1.02cqw;
}

.measure-rail::before {
  content: "";
  position: absolute;
  top: 2.37cqw;
  left: 0;
  width: 4.07cqw;
  height: 12.71cqw;
  background: repeating-linear-gradient(to bottom, transparent 0 1.95cqw, rgba(16, 24, 32, 0.14) 1.95cqw 2.03cqw);
}

.measure-rail span {
  position: absolute;
  left: -1.36cqw;
}

.measure-rail span:nth-child(1) {
  top: 11.02cqw;
}

.measure-rail span:nth-child(2) {
  top: 15.59cqw;
}

.measure-rail span:nth-child(3) {
  top: 20.17cqw;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46.61cqw;
  margin-left: 0;
  padding-top: 2.2cqw;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Portrait Text", Georgia, serif;
  font-weight: 400;
}

h1 {
  margin-bottom: 1.69cqw;
  font-size: 9.63cqw;
  line-height: 0.9;
  white-space: nowrap;
}

.role {
  margin-bottom: 2.1cqw;
  color: var(--red);
  font-family: "Calibre", Arial, sans-serif;
  font-size: 2.05cqw;
  font-weight: 500;
  font-synthesis: none;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.rule-mark {
  display: flex;
  align-items: center;
  gap: 1.53cqw;
  margin-bottom: 1.75cqw;
}

.rule-mark::before {
  content: "✦";
  color: var(--red);
  font-size: 2.44cqw;
  line-height: 1;
}

.rule-mark::after {
  content: "";
  width: min(27.12cqw, 68%);
  height: 1px;
  background: rgba(16, 24, 32, 0.28);
}

.intro {
  max-width: 43cqw;
  margin-bottom: 5.2cqw;
  color: #101820;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.92cqw;
  line-height: 1.55;
}

.interest-list {
  display: flex;
  align-items: center;
  gap: 1.05cqw;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interest-list li {
  display: grid;
  grid-template-columns: 3.8cqw max-content;
  gap: 0.9cqw;
  align-items: center;
  padding-right: 1.55cqw;
  border-right: 1px solid rgba(16, 24, 32, 0.2);
  color: var(--blue);
  font-size: 1.64cqw;
  line-height: 1.15;
}

.interest-list li:last-child {
  border-right: 0;
}

.interest-list img {
  width: 3.7cqw;
  height: 3.7cqw;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-art p {
  position: absolute;
  top: 2.03cqw;
  right: -1.19cqw;
  margin: 0;
  writing-mode: vertical-rl;
  color: rgba(16, 24, 32, 0.55);
  font-family: Georgia, serif;
  font-size: 1.17cqw;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.down-link {
  position: absolute;
  bottom: 0.34cqw;
  left: 50%;
  font-size: 2.71cqw;
  line-height: 1;
  transform: translateX(-50%);
}

.projects,
.about {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 38px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

.section-number::after {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(16, 24, 32, 0.28);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.05;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 224px;
  padding: 24px;
  border: 1px solid rgba(16, 24, 32, 0.26);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: rgba(157, 47, 47, 0.48);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  transform: translateY(-3px);
}

.project-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
  min-height: 86px;
}

.project-head img {
  min-width: 0;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.project-head img.bgg-logo {
  border-radius: 8px;
}

h3 {
  min-width: 0;
  margin: 8px 0 0;
  font-size: 1.55rem;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.project-card p {
  min-width: 0;
  margin: 18px 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 32, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.project-card span {
  margin-top: auto;
  color: var(--blue);
  font-weight: 500;
}

.about {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(420px, 1.06fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 60px;
}

.about h2 {
  margin-bottom: 24px;
}

.about h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 18px;
  background: var(--red);
}

.about-copy p {
  max-width: 540px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.7;
}

.about-art img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-left: auto;
}

.site-footer {
  padding: 30px 38px;
  border-bottom: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .projects,
  .about {
    padding-right: 24px;
    padding-left: 24px;
  }

  .project-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .about-art img {
    width: min(100%, 560px);
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 24px 16px 18px;
  }

  .site-nav,
  .site-footer nav {
    flex-wrap: wrap;
    gap: 16px 20px;
  }

  .projects,
  .about {
    padding: 34px 16px;
  }

  h2 {
    font-size: 3rem;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    overflow: hidden;
  }

  .project-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  h3 {
    font-size: 1.45rem;
  }

  .project-card p {
    max-width: 30ch;
  }
}
