:root {
    --c-brand: #e6a817;
    --c-brand-alt: #cc9210;
    /* Darker gold for hover/active */
    --c-text: #2c2c2c;
    --c-text-muted: #5e5e5e;
    --c-bg-page: #ffffff;
    --c-bg-panel: #fcfbf9;
    --c-border: #e8e6e0;
    --c-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    --radius: 4px;
    /* Squarer look like ISNIC */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 3rem;

    --content-max: 64rem;
}

@font-face {
    font-family: "Atkinson Hyperlegible";
    src: url("https://www.wcs.cet.is/fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--c-bg-page);
    color: var(--c-text);
    font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--c-text);
    text-decoration: none;
}

a:hover {
    color: var(--c-brand);
}

/* Header */
header {
    border-top: 5px solid var(--c-brand);
    padding: var(--space-2) 0;
    background: var(--c-bg-page);
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--c-brand);
}

nav {
    display: flex;
    gap: var(--space-3);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-4) var(--space-2);
}

/* Hero / Search */
.hero-search {
    text-align: center;
    margin-bottom: var(--space-4);
    padding: var(--space-4) 0;
    background: var(--c-bg-panel);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.hero-search h1 {
    margin: 0 0 var(--space-2);
    font-size: 2rem;
    color: var(--c-text);
}

.domain-search-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 32rem;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s;
}

.search-input:focus {
    border-color: var(--c-brand);
}

.search-btn {
    background: var(--c-brand);
    color: #fff;
    /* White text on gold */
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
}

.search-btn:hover {
    background: var(--c-brand-alt);
}

/* Quick Links / Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: var(--space-3);
}

.card {
    padding: var(--space-3);
    background: var(--c-bg-page);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--c-shadow);
    border-color: var(--c-brand);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.card p {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 0.95rem;
}

.card a {
    display: block;
    height: 100%;
}

/* Make whole card clickable usually, but here we wrapper */

/* Footer */
footer {
    text-align: center;
    padding: var(--space-4) var(--space-2);
    border-top: 1px solid var(--c-border);
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-top: auto;
}

.pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(230, 168, 23, 0.15);
    color: #926600;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}