/* assets/css/style.css */

@font-face {
  font-family: 'Athiti';
  src: url('../fonts/athiti/Athiti-Regular.woff2') format('woff2'),
    url('../fonts/athiti/Athiti-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Athiti';
  src: url('../fonts/athiti/Athiti-Medium.woff2') format('woff2'),
    url('../fonts/athiti/Athiti-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Athiti';
  src: url('../fonts/athiti/Athiti-Bold.woff2') format('woff2'),
    url('../fonts/athiti/Athiti-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon: #790000;
  --purple: #580078;
  --ink: #1c1a17;
  --hairline: #e7dfe9;
  --page-width: 1440px;
  --side-pad: 48px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--purple);
  font-family: 'Athiti', sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: var(--page-width);
}

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

a:hover {
  text-decoration: underline;
}

/* ---------- header ---------- */

header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 28px var(--side-pad) 22px;
  flex-wrap: wrap;
}

.brand img {
  display: block;
  height: 70px;
  width: auto;
}

nav {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

nav a {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: var(--maroon);
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 34px;
}

nav a:hover {
  text-decoration: none;
  color: var(--purple);
}

nav a:first-child {
  margin-left: 0;
}

nav a.current,
nav a.current:hover {
  color: var(--purple);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  width: 100%;
  line-height: 0;
  margin:0;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero figcaption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: #fff;
  font-weight: 400;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ---------- main two-column layout ---------- */

main {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 64px;
  padding: 52px var(--side-pad) 40px;
}

.content h1 {
  color: var(--maroon);
  font-size: 1.9rem;
  font-weight: 500;
  margin: 0 0 26px;
}

.content p {
  margin: 0 0 20px;
  font-size: 1.05rem;
  text-align: justify;
  line-height: 1.65;
  max-width: 62ch;
}

.content em {
  font-style: italic;
}

.news h2 {
  color: var(--maroon);
  font-size: 1.9rem;
  font-weight: 500;
  text-align: right;
  margin: 0 0 30px;
}

.news article+article {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.news h3 {
  color: var(--maroon);
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
}

.news .meta {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--purple);
  margin: 0 0 10px;
}

.news .sub {
  margin: 16px 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--maroon);
}

.news ul {
  margin: 0 0 10px;
  padding-left: 1.1em;
  font-size: 0.94rem;
  line-height: 1.55;
}

.news .label {
  font-weight: 500;
  color: var(--maroon);
}

.news .practical {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 10px;
}

.news .infos {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}

.news .infos a {
  text-decoration: underline;
}

/* ---------- footer ---------- */

footer {
  padding: 10px var(--side-pad) 0;
}

.contact {
  display: flex;
  justify-content: flex-end;
}

.contact-block {
  text-align: right;
  max-width: 340px;
}

.contact-block h2 {
  color: var(--maroon);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 18px;
}

.contact-block .addr {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

.contact-block .email {
  font-size: 0.98rem;
  margin: 0 0 20px;
}

.contact-block .legalinfo {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #8a7a95;
}

hr {
  border: none;
  border-top: 1px solid var(--purple);
  margin: 34px 0 18px;
}

.footlinks {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  padding-bottom: 26px;
  font-size: 0.9rem;
}

/* ---------- email address protection ---------- */

.email:after {
  content: '@gmail.com';
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news h2 {
    text-align: left;
  }

  .contact {
    justify-content: flex-start;
  }

  .contact-block {
    text-align: left;
  }

  .footlinks {
    justify-content: flex-start;
  }

  .brand img {
    height: 56px;
  }
}

@media (max-width: 560px) {
  header {
    padding: 22px 24px 16px;
  }

  main {
    padding: 36px 24px 30px;
  }

  footer {
    padding: 10px 24px 0;
  }

  nav {
    gap: 18px;
  }
}