:root {
  --bg: #fcfcf8;
  --text: #1d1d1b;
  --muted: #5f5b55;
  --soft: #8a847c;
  --rule: #ddd8cf;
  --panel: #f7f5ef;
  --panel-hover: #f3f0e8;
  --link: #1d1d1b;
  --link-hover: #6a6258;
  --accent: #8a6f4d;
  --max: 860px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Links (inline only) */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 60px;
}

header {
  margin-bottom: 44px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.logo img {
  width: 54px;
  height: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo-tag {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo-link:hover {
  opacity: 0.9;
}

.seal-figure {
  float: right;
  margin: 0 0 16px 20px;
  max-width: 160px;
  text-align: center;
}

.seal-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2px;
}

.seal-figure figcaption {
  font-size: 0.8em;
  margin-top: 0;
  line-height: 1.1;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .seal-figure {
    float: none;
    margin: 0 auto 20px auto;
    max-width: 180px;
    display: block;
  }

  .seal-figure img {
    margin-bottom: 2px;
  }

  .seal-figure figcaption {
    text-align: center;
  }
}

/* Headings */
h1 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.subhead {
  margin: 10px 0 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.7;
}

/* Intro */
.intro {
  max-width: 42rem;
  margin-bottom: 32px;
}

.intro p {
  margin: 0 0 1.1em;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px 0 42px;
}

/* Cards */
.card {
  cursor: pointer;
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 18px 16px;
  text-decoration: none;
  border-bottom: none; /* prevent link underline */
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.card:hover,
.card:focus {
  background: var(--panel-hover);
  border-color: #cfc7bc;
  transform: translateY(-2px);
}

.card:hover .card-title {
  color: var(--link-hover);
}

.card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
}

.card-text {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.card-url {
  font-size: 0.92rem;
  color: var(--soft);
  word-break: break-word;
}

/* Closing */
.closing {
  max-width: 40rem;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.closing p {
  margin: 0 0 0.9em;
  color: var(--muted);
}

/* Email link (softer) */
.email a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.email a:hover {
  border-bottom-color: var(--link-hover);
}


.back-top{
  margin: 24px 0 0;
  font-size: 13px;
}

.back-top a{
  color: var(--muted);
  border-bottom: 0;
  text-decoration: none;
}

.back-top a:hover{
  color: var(--ink);
}


/* Footer */
footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--soft);
}

footer a {
  color: var(--soft);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

footer a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

/* Responsive */
@media screen and (min-width: 760px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 680px) {
  .wrap {
    padding: 44px 20px 42px;
  }

  .intro p {
    font-size: 1rem;
  }

  .subhead {
    font-size: 0.98rem;
  }

  .card {
    padding: 16px 16px 14px;
  }
}