/* Martin Sequani — one-screen business card */

:root {
  --ink:    #343a40;
  --body:   #495057;
  --muted:  #868e96;
  --accent: #8B0000;
  --chrome: #555555;
  --line:   #dee2e6;
  --border: #ced4da;
  --display: 'Saira Extra Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --text: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--text);
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: #824027; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- dark panel with the logo --- */

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px 30px;
  background: var(--chrome);
}

.brand img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.2);
}

/* --- card --- */

.card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 20px;
}

.card__body { flex: 1 1 auto; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 46px;
  line-height: 0.88;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 span { color: var(--accent); }

.rule {
  width: 56px;
  height: 3px;
  margin: 20px 0;
  background: var(--accent);
}

.role {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  font-size: 24px;
  color: var(--body);
}

address {
  display: block;
  margin-top: 22px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.5;
  font-size: 17px;
  color: var(--body);
}

/* --- actions --- */

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  color: var(--body);
}

.btn:hover, .btn:focus { border-color: var(--accent); color: var(--accent); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--primary:hover, .btn--primary:focus {
  background: #6f0000;
  border-color: #6f0000;
  color: #fff;
}

.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.social:hover, .social:focus { color: var(--accent); }
.social svg { width: 17px; height: 17px; }

/* --- footer --- */

.card footer {
  flex: 0 0 auto;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.card footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}

/* --- tablet --- */

@media (min-width: 768px) {
  .brand { padding: 64px 24px; }
  .brand img { width: 168px; height: 168px; border-width: 9px; }

  .card { padding: 60px 56px 44px; }

  h1 { font-size: 76px; }
  .rule { margin: 26px 0; }
  .role { font-size: 34px; }
  address { font-size: 20px; margin-top: 26px; }

  .actions { flex-direction: row; margin-top: 26px; }
  .btn { justify-content: flex-start; }
  .card footer { margin-top: 28px; }
}

/* --- desktop: panel becomes a full-height column --- */

@media (min-width: 1200px) {
  .page { flex-direction: row; }

  .brand {
    flex: 0 0 480px;
    width: 480px;
    align-self: stretch;
    padding: 40px;
  }

  .brand img { width: 200px; height: 200px; border-width: 10px; }

  .card {
    padding: 72px 80px 56px;
    min-width: 0;
  }

  .card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  h1 { font-size: 92px; }
  .rule { margin: 30px 0; }
  .role { font-size: 40px; }
  address { font-size: 22px; margin-top: 28px; }
  .actions { margin-top: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
}
