/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/inter-v18-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/inter-v18-latin-500.woff2') format('woff2');
  font-display: swap;
}

/* Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/playfair-display-v37-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/playfair-display-v37-latin-italic.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/playfair-display-v37-latin-500.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/playfair-display-v37-latin-500italic.woff2') format('woff2');
  font-display: swap;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #4a5e58;
}

/* Page Styling */
body {
  font-family: "Inter", sans-serif;
  background-color: #f9f9f6;
  color: #1c1c1c;
  line-height: 1.7;
  font-size: 1.1rem;
  padding: 2rem;
}

/* Optional Accent Band at Top */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent);
  width: 100%;
  margin-bottom: 2rem;
}

/* Layout */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-left: 2px solid #eee;
  padding-left: 2rem;
}

/* Header Mark */
.header-mark {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header-mark hr {
  border: none;
  border-top: 1px solid var(--accent);
  width: 60px;
  margin: 0 auto 0.5rem;
}

.monogram {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* Typography */
p {
  margin-bottom: 1.4rem;
}

h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0.6rem 0 0.2rem;
}

/* Intro Paragraphs */
.intro p {
  margin-bottom: 1.4rem;
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid var(--accent);
  margin: 4rem auto 2rem;
  width: 100%;
  max-width: 700px;
}

/* Team Section */
.team {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 3rem;
  flex-wrap: wrap;
  background-color: #f1f1ed;
  padding: 2rem;
  border-radius: 8px;
}

.profile {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.profile img {
  width: 100%;
  max-width: 140px;
  border: 1px solid #999;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.profile p {
  font-weight: 300;
}

.profile a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.profile a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  position: relative;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.top-corner-flag {
  position: absolute;
  top: 0;
  right: 0;
  width: 112px;
  height: 112px;
  clip-path: polygon(100% 0, 100% 100%, 0 0); /* triangle */
  z-index: 999;
  transition: transform 0.25s ease;
}

.top-corner-flag::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  clip-path: inherit;
  background: rgba(0, 0, 0, 0.08); /* subtle inner shading */
  z-index: -1;
}

.top-corner-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  transform: scale(0.92);
  pointer-events: none; /* ensures hover works on parent */
}

.top-corner-flag:hover {
  transform: scale(1.05);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile adjustment */
@media (max-width: 600px) {
  .team {
    flex-direction: column;
    align-items: center;
  }

  .top-corner-flag {
    width: 84px;
    height: 84px;
  }
}
