@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@400;700&display=swap');

:root {
  --fp-blue: #173A8F;
  --fp-ivory: #F8F4EA;
  --fp-white: #FFFFFF;
  --fp-burgundy: #8F1D2C;
  --fp-anthracite: #202124;

  /* Brand charter says these two are to be defined; these are NOT brand tokens. */
  --fp-gold: #B89545;
  --fp-sakura: #E8A5B7;

  --fp-border: #D8CDBB;
  --fp-muted: #6F6A63;

  --fp-font-display: "EB Garamond", Georgia, serif;
  --fp-font-body: "Lato", Arial, sans-serif;

  --fp-radius-sm: .375rem;
  --fp-radius-md: .75rem;
  --fp-radius-lg: 1rem;

  --fp-shadow-sm: 0 4px 14px rgba(32,33,36,.08);
  --fp-shadow-md: 0 10px 30px rgba(32,33,36,.10);

  --fp-container: 1180px;
  --fp-content: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fp-ivory);
  color: var(--fp-anthracite);
  font-family: var(--fp-font-body);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fp-burgundy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }

.fp-container {
  width: min(calc(100% - 2rem), var(--fp-container));
  margin-inline: auto;
}
.fp-content { max-width: var(--fp-content); margin-inline: auto; }

.fp-header {
  background: var(--fp-blue);
  color: var(--fp-ivory);
  border-bottom: 1px solid var(--fp-gold);
}
.fp-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.fp-header__brand {
  flex: 0 0 auto;
  color: var(--fp-ivory);
  text-decoration: none;
  font: 700 1.65rem/1 var(--fp-font-display);
  letter-spacing: .02em;
}
.fp-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.25rem;
  margin-left: auto;
}
.fp-header__nav a {
  color: var(--fp-ivory);
  text-decoration: none;
  font-size: .92rem;
}
.fp-header__nav a:hover,
.fp-header__nav a[aria-current="page"] {
  color: var(--fp-ivory);
  text-decoration: underline;
  text-decoration-color: var(--fp-gold);
  text-underline-offset: .45rem;
}

.fp-hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    linear-gradient(90deg, rgba(248,244,234,.96), rgba(248,244,234,.78), rgba(248,244,234,.96));
}
.fp-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px) 1fr;
  align-items: center;
  gap: 2rem;
}
.fp-hero__side {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.fp-hero__side strong {
  display: block;
  font: 600 clamp(1.6rem, 3vw, 2.5rem)/1.05 var(--fp-font-display);
  color: var(--fp-blue);
}
.fp-hero__side--jp strong { color: var(--fp-burgundy); }
.fp-hero__crest { justify-self: center; max-height: 330px; object-fit: contain; }
.fp-hero__content { text-align: center; margin-top: 1.5rem; }
.fp-hero__title {
  margin: 0;
  font: 600 clamp(2.4rem, 5vw, 4.5rem)/.98 var(--fp-font-display);
  color: var(--fp-blue);
}
.fp-hero__lead { max-width: 680px; margin: 1rem auto 1.5rem; }

.fp-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.fp-section--white { background: var(--fp-white); }

.fp-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 2.5rem;
  color: var(--fp-blue);
  font: 600 clamp(1.7rem, 3vw, 2.6rem)/1.1 var(--fp-font-display);
  text-align: center;
}
.fp-section-title::before,
.fp-section-title::after {
  content: "";
  flex: 1 1 80px;
  max-width: 180px;
  height: 1px;
  background: var(--fp-gold);
}

.fp-tile {
  display: grid;
  grid-template-columns: minmax(180px, 35%) 1fr;
  overflow: hidden;
  background: var(--fp-white);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
}
.fp-tile__media {
  min-height: 220px;
  background: #eee8dc;
}
.fp-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.fp-tile__body { padding: clamp(1.25rem, 3vw, 2rem); }
.fp-tile__title {
  margin: 0 0 .55rem;
  color: var(--fp-blue);
  font: 600 1.7rem/1.1 var(--fp-font-display);
}
.fp-tile__meta {
  color: var(--fp-burgundy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--fp-radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.fp-button:hover { transform: translateY(-1px); box-shadow: var(--fp-shadow-sm); }
.fp-button--primary { background: var(--fp-blue); color: var(--fp-ivory); }
.fp-button--secondary { background: var(--fp-ivory); color: var(--fp-blue); border-color: var(--fp-blue); }
.fp-button--accent { background: var(--fp-burgundy); color: var(--fp-ivory); }
.fp-button--ghost { background: transparent; color: var(--fp-blue); }
.fp-button:disabled,
.fp-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.fp-callout {
  padding: 1.5rem 1.75rem;
  background: var(--fp-ivory);
  border: 1px solid var(--fp-gold);
  border-radius: var(--fp-radius-md);
}
.fp-callout__title {
  margin: 0 0 .5rem;
  color: var(--fp-blue);
  font: 600 1.55rem/1.1 var(--fp-font-display);
}
.fp-callout__accent { color: var(--fp-burgundy); }

.fp-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: var(--fp-muted);
  font-size: .9rem;
}
.fp-navigation a { color: var(--fp-blue); }
.fp-navigation [aria-current="page"] { color: var(--fp-burgundy); font-weight: 700; }
.fp-navigation__sep { color: var(--fp-gold); }

.fp-media {
  overflow: hidden;
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
}
.fp-media img { width: 100%; }
.fp-media__caption {
  padding: .65rem .85rem;
  background: var(--fp-white);
  color: var(--fp-muted);
  font-size: .82rem;
}

.fp-data { width: 100%; border-collapse: collapse; background: var(--fp-white); }
.fp-data th,
.fp-data td { padding: .85rem 1rem; border-bottom: 1px solid var(--fp-border); text-align: left; }
.fp-data th {
  color: var(--fp-blue);
  font: 600 1.05rem var(--fp-font-display);
}
.fp-data tr:last-child td { border-bottom: 0; }

.fp-field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.fp-field label { color: var(--fp-blue); font-weight: 700; }
.fp-field input,
.fp-field select,
.fp-field textarea {
  width: 100%;
  padding: .7rem .8rem;
  background: var(--fp-ivory);
  color: var(--fp-anthracite);
  border: 1px solid var(--fp-blue);
  border-radius: var(--fp-radius-sm);
  outline: none;
}
.fp-field input:focus,
.fp-field select:focus,
.fp-field textarea:focus {
  border-color: var(--fp-gold);
  box-shadow: 0 0 0 3px rgba(184,149,69,.18);
}
.fp-field--error input,
.fp-field--error select,
.fp-field--error textarea { border-color: var(--fp-burgundy); }
.fp-field__message { font-size: .84rem; }
.fp-field--error .fp-field__message { color: var(--fp-burgundy); }

.fp-editorial { max-width: var(--fp-content); margin-inline: auto; }
.fp-editorial h1,
.fp-editorial h2,
.fp-editorial h3 { color: var(--fp-blue); font-family: var(--fp-font-display); }
.fp-editorial blockquote {
  margin: 2rem 0;
  padding: .5rem 1.25rem;
  border-left: 4px solid var(--fp-burgundy);
  color: var(--fp-burgundy);
  font: 400 1.35rem/1.45 var(--fp-font-display);
}
.fp-editorial li::marker { color: var(--fp-burgundy); }

.fp-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .25rem .7rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fp-badge--blue { color: var(--fp-blue); background: var(--fp-ivory); }
.fp-badge--burgundy { color: var(--fp-burgundy); background: var(--fp-ivory); }
.fp-badge--gold { color: #80651f; background: var(--fp-ivory); border-color: var(--fp-gold); }

.fp-state {
  padding: .75rem 0;
  border-top: 1px solid var(--fp-border);
  border-bottom: 1px solid var(--fp-border);
}
.fp-state--success { color: #3D7A57; }
.fp-state--error { color: var(--fp-burgundy); }
.fp-state--warning { color: #80651f; }
.fp-state--empty,
.fp-state--loading { color: var(--fp-muted); }

.fp-footer {
  padding: 3rem 0;
  background: var(--fp-ivory);
  border-top: 1px solid var(--fp-gold);
  text-align: center;
}
.fp-footer__logo { width: 105px; margin: 0 auto 1rem; }
.fp-footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.fp-footer__nav a { color: var(--fp-blue); text-decoration: none; }

@media (max-width: 800px) {
  .fp-header__inner { padding-block: 1rem; flex-wrap: wrap; }
  .fp-header__nav { margin-left: 0; width: 100%; }
  .fp-hero__grid { grid-template-columns: 1fr; }
  .fp-hero__side { display: none; }
  .fp-hero__crest { max-height: 280px; }
  .fp-tile { grid-template-columns: 1fr; }
  .fp-tile__media { min-height: 190px; max-height: 280px; }
  .fp-section-title::before,
  .fp-section-title::after { max-width: 60px; }
}
