/* The Bogard Edit. Built to the BOGARD Team Brand Book (10.04.23). */

@font-face { font-family: "MADE Saonara"; src: url("assets/fonts/MADE SAONARA.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root { --graphite: #303030; --off-white: #F2F2F2; --creme: #EBE6DA; --rose: #96516C; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Montserrat", sans-serif; font-weight: 400; color: var(--graphite); background: var(--off-white); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1204px, 100% - 64px); margin-inline: auto; }

/* Brand type: display +30 tracking, labels -20, body 0 */
.display { font-family: "MADE Saonara", serif; font-weight: 400; font-style: normal; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.12; }
.display .accent { color: var(--rose); }
.label { font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; }

/* Header */
header { padding: 28px 0; }
header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mark { height: 64px; width: 64px; }
nav { display: flex; gap: 64px; }
nav a { color: var(--graphite); text-decoration: none; font-size: 0.9rem; }
nav a:hover, nav a:focus-visible { color: var(--rose); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
.btn { display: inline-block; font-family: inherit; font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none; cursor: pointer; border: 1px solid var(--graphite); transition: background .2s, color .2s, border-color .2s; }
.btn-light { background: var(--off-white); border-color: var(--off-white); color: var(--graphite); padding: 16px 36px; border-radius: 999px; }
.btn-light:hover, .btn-light:focus-visible { background: var(--graphite); border-color: var(--graphite); color: var(--off-white); }
.btn-dark { background: var(--graphite); color: var(--off-white); padding: 16px 30px; }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--rose); border-color: var(--rose); }

/* Home */
.hero { position: relative; aspect-ratio: 1204 / 562; overflow: hidden; background: var(--graphite); color: var(--off-white); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 4.2% 24px 4.6%; }
.hero .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero h1 { position: relative; font-size: clamp(2rem, 7.4vw, 6.4rem); line-height: 1; white-space: nowrap; }
.hero .foot { position: relative; }
.hero .foot p { font-size: clamp(0.95rem, 1.6vw, 1.25rem); margin-bottom: 26px; text-shadow: 0 1px 14px rgba(0,0,0,.55); }

/* Magazine */
.issue { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 56px; align-items: center; padding: 48px 0 80px; }
.issue .cover { box-shadow: 0 1px 0 rgba(48,48,48,.08); }
.issue h1 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); margin-bottom: 28px; }
.issue p { max-width: 34rem; margin-bottom: 32px; }

/* Contact */
.contact-head { text-align: center; padding: 64px 0 56px; }
.contact-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; width: min(1120px, 100%); margin: 0 auto; padding-bottom: 96px; }
form label { display: block; font-size: 0.8rem; margin-bottom: 6px; }
form input, form textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(48,48,48,.4); padding: 10px 12px; margin-bottom: 26px; border-radius: 0; }
form textarea { min-height: 96px; resize: vertical; }
form input:focus, form textarea:focus { outline: none; border-bottom-color: var(--rose); }
form .btn { width: 100%; border-radius: 999px; }
.form-note { font-size: 0.8rem; margin-top: 16px; min-height: 1.4em; }

/* Footer */
footer .wrap { border-top: 1px solid rgba(48,48,48,.4); padding: 72px 0 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
footer small { font-size: 0.75rem; }
footer .serhant { height: 30px; width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
footer .tag { justify-self: end; font-size: 0.75rem; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  header { padding: 20px 0; }
  header .wrap { grid-template-columns: auto 1fr; }
  header .wrap > span { display: none; }
  .mark { height: 48px; width: 48px; }
  nav { gap: 22px; justify-self: end; }
  .hero { aspect-ratio: 4 / 5; padding: 6% 12px 9%; }
  .hero h1 { font-size: 9.2vw; }
  .hero .photo { object-position: 50% 0; }
  .issue, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .issue { padding: 24px 0 56px; }
  .contact-head { padding: 40px 0 36px; }
  .contact-grid { padding-bottom: 64px; }
  footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 48px; gap: 14px; }
  footer .tag { justify-self: center; }
}
